Last active
August 29, 2015 14:23
-
-
Save yeshess/3329dcb586c0a463c088 to your computer and use it in GitHub Desktop.
vagrantpackerpost2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
"aws_secret_key": "{{env `AWS_ACCESS_KEY`}}", | |
"aws_source_ami": "", | |
"instance_type": "m3.large", | |
"virtualbox_source_image": "", | |
"insecure_private_key": "./keys/insecure_private_key" | |
}, | |
"builders": [ | |
{ | |
"name": "cloudify_docker_image_generator_image", | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"ssh_private_key_file": "{{user `insecure_private_key`}}", | |
"region": "eu-west-1", | |
"source_ami": "{{user `aws_source_ami`}}", | |
"instance_type": "{{user `instance_type`}}", | |
"ssh_username": "vagrant", | |
"user_data_file": "userdata/add_vagrant_user.sh", | |
"ami_name": "cloudify docker image builder {{timestamp}}" | |
}, | |
... more builders with different images according to the relevant distro... | |
], | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"script": "provision/provision.sh" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment