- Ruby
- Chef
You must select ubuntu AMI.
$ berks vendor cookbooks
$ knife solo prepare ubuntu@<YOUR_EC2_INSTANCE_HOST> -i <YOUR_AWS_KEY_PATH>
$ vim nodes/<YOUR_EC2_INSTANCE_HOST>.json
<YOUR_EC2_INSTANCE_HOST>.json
{
"environment": "ec2_ubuntu",
"run_list": [
"role[web]"
],
"automatic": {
"ipaddress": "<YOUR_EC2_INSTANCE_HOST>"
}
}
$ knife solo cook ubuntu@<YOUR_EC2_INSTANCE_HOST> -i <YOUR_AWS_KEY_PATH>
$ berks vendor cookbooks
$ vagrant up --provision