Skip to content

Instantly share code, notes, and snippets.

@yeshess
Last active August 29, 2015 14:23
Show Gist options
  • Save yeshess/3329dcb586c0a463c088 to your computer and use it in GitHub Desktop.
Save yeshess/3329dcb586c0a463c088 to your computer and use it in GitHub Desktop.
vagrantpackerpost2
{
"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