Getting Productive with Chef Cookbooks


WRITE A WINDOWS WEB APPLICATION COOKBOOK

by scmGalaxy.com

About Me !

Rajesh
Facebook Twitter LinkedIn
DevOps@RajeshKumar.xyz

Prerequisites

chef-prerequisites

Chef Server (roll-your-own or chef.io)

Workstation with ChefDK

Windows Server 2012 R2 node

Ubuntu Server 14.04 LTS node

Planning and Installing Chef

https://www.pluralsight.com/courses/chef-planning-installing

Module Overview

Chef Module

Demo

Chef Demo

Create all-nodes cookbook

Use Berkshelf

Configure chef-client

Configure Web Server

Configure Web Server

Demo

Chef CookBooks

Configure web services

Verify configuration

Configure Database

Demo

Install SQL Server

Create & populate database

Verify configuration

Configure Web Application

Configure Web Application

Demo

Chef Cookbooks

Configure web application

Grant access to database

Verify configuration

Module Summary


Configured chef-client with community cookbook

Installed & configured IIS

Installed & configured SQL Server

Built IIS/SQL web application

Write a Linux Web Application Cookbook


Module Overview

Chef Module Linux

Demo

Apply all-nodes cookbook

Configure chef-client

Configure Apache

Demo

Create user & group

Configure web services

Verify configuration

Configure Database

Demo

Install MySQL

Create & populate database

Verify configuration

Configure Web Application

Demo

Configure web application

Grant access to database

Verify configuration

Module Summary


Configured chef-client with community cookbook

Configured Apache, MySQL and PHP on Ubuntu

Create a Code Testing Environment


Module Overview

Module Overview

Demo

Install VirtualBox

Configure VirtualBox

Verify VirtualBox

Demo

Install Vagrant

Configure Vagrant

Verify Vagrant

Create Vagrant Box

Demo

Install Packer

Configure Packer

Build a Windows Vagrant box

Module Summary


Install & configure VirtualBox

Install & configure Vagrant

Install & configure Packer

Verify test environment

Verify Your Code with Test Kitchen


Module Overview

Chef Cookbooks

Demo

Create motd cookbook

Create Ubuntu test instance

Verify cookbook with Test Kitchen

Destroy test instance

Demo

Create server-settings cookbook

Create Windows test instance

Verify cookbook with Test Kitchen

Destroy test instance

Demo

Create Ubuntu test instance

Converge webapp-linux cookbook

Verify web application is running

Destroy test instance

Demo

Test Instance

Create Windows test instance

Converge webapp-windows cookbook

Verify web application is running

Destroy test instance

Module Summary


Test basic cookbooks with Test Kitchen

Test webapp-linux with Test Kitchen

Test webapp-windows with Test Kitchen

Course Summary


Wrote a web application on Windows Server

Wrote a web application on Ubuntu

Created a local testing environment

Tested Chef code with Test Kitchen

Questions !!

Questions

Thanks !!