-
Notifications
You must be signed in to change notification settings - Fork 12
/
intermediate-hvm-centos-6.9.json
36 lines (34 loc) · 1.35 KB
/
intermediate-hvm-centos-6.9.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"variables": {
"aws_keypair_name": "{{env `TRAINING_AWS_KEYPAIR_NAME`}}",
"aws_keypair_file": "{{env `TRAINING_AWS_KEYPAIR`}}",
"name": "EDH TEST4 Intermediate - CentOS 6.9 - 3.0.2",
"chefdk_version": "2.4.17"
},
"builders": [{
"type": "amazon-ebs",
"ssh_pty": true,
"ssh_username": "chef",
"ssh_password": "Cod3Can!",
"region": "us-east-1",
"instance_type": "m3.medium",
"source_ami": "ami-035022cc0aa27046c",
"ami_name": "{{user `name`}}",
"tags" : {
"node_type" : "chef-intermediate-workstation",
"chef_dk_version" : "{{user `chefdk_version`}}"
}
}],
"provisioners": [{
"type": "shell",
"inline": [
"echo 'The base image updated cloud-init. Waiting for cloud-init to finish (~ 5 minutes).'",
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting 15 seconds for cloud-init...'; sleep 15; done",
"curl https://omnitruck.chef.io/install.sh | sudo bash -s -- -v {{user `chefdk_version`}} -P chefdk",
"chef gem install kitchen-docker",
"echo 'eval \"$(chef shell-init bash)\"' >> /home/chef/.bash_profile",
"sudo yum install -y git tree",
"git clone https://github.com/chef-training/chef-intermediate-repo.git /home/chef/apache"
]
}]
}