The purpose of this cookbook is to deploy 2 different style web-servers in this cookbook.
There is also an option to deploy in standalone
mode using chef-client --local-mode
which will deploy 3 machines and put them behind a load balancer.
Ubuntu linux platform
To run in chef-client --local-mode
the following assumptions are made:
devops_rsa
key pair is installed on local machine (~/.ssh/devops_rsa
) and in the correct aws cloud region- command line session already registered to aws
- chefdk software package installed
berks vendor
on this cookbook and put that output into your local chef repo cookbook foldercp -R berks-cookbooks/* ~/<your chef repo>/cookbooks
- if you don't have a chef repo make one!
chef generate <your chef repo>
- if you don't have a chef repo make one!
- set
export AWS_DEFAULT_PROFILE=personal
or whatever aws profile you choose to use - run the webserver/elb deployment example using
chef-client --local-mode aws_deploy.rb
- Locally
- set environment variable to point to correct kitchen file
export KITCHEN_YAML=.kitchen.yml
kitchen converge
will deploy 3 webserver boxes locally.
- set environment variable to point to correct kitchen file
- in AWS
- set environment variable to point to correct kitchen file
export KITCHEN_YAML=.kitchen.cloud.yml
kitchen converge
will deploy 3 webserver boxes in aws.
- set environment variable to point to correct kitchen file
does nothing. This recipe is empty
Deploys the standard user the web-servers will use to run their services.
Deploys the standard site the web-servers will point to.
Deploys httpd web service and configures it to run.
Deploys nginx web service and configures it to run.
Author::([email protected])