Skip to content

Commit

Permalink
Adds the initial habitat packer script
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Jun 17, 2016
1 parent 71ba92a commit e50dc14
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions habitat-centos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"aws_keypair_name": "training-ec2-keypair",
"aws_keypair_file": "{{env `TRAINING_AWS_KEYPAIR`}}"
},
"builders": [{
"type": "amazon-ebs",
"ssh_pty": true,
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"ssh_keypair_name": "{{user `aws_keypair_name`}}",
"ssh_private_key_file": "{{user `aws_keypair_file`}}",
"region": "us-east-1",
"instance_type": "m3.medium",
"source_ami": "ami-c10044a4",
"ssh_username": "root",
"ami_name": "Habitat - CentOS 6.7 - 0.0.1"
}],

"provisioners": [{
"type": "chef-solo",
"install_command": "curl -L https://www.chef.io/chef/install.sh | {{if .Sudo}}sudo{{end}} bash -s",
"cookbook_paths": ["cookbooks"],
"run_list": ["workstations::essentials"]

}]
}

0 comments on commit e50dc14

Please sign in to comment.