Created
March 18, 2015 11:50
-
-
Save skinofstars/bdec2268810308856d69 to your computer and use it in GitHub Desktop.
Ansible packer.json example
This file contains 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": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "eu-west-1", | |
"source_ami": "ami-f0b11187", | |
"instance_type": "t2.micro", | |
"ssh_username": "ubuntu", | |
"ami_name": "my great app {{timestamp}}" | |
}], | |
"provisioners": [{ | |
"type": "shell", | |
"inline": [ | |
"sleep 30", | |
"sudo apt-get update", | |
"sudo apt-get install -y python-setuptools python-paramiko python-yaml python-dev python-crypto", | |
"sudo easy_install pip", | |
"sudo pip install jinja2 httplib2 ansible" | |
] | |
},{ | |
"type": "ansible-local", | |
"role_paths": [ | |
"../provisioner/roles/base", | |
"../provisioner/roles/monit", | |
"../provisioner/roles/java", | |
"../provisioner/roles/python-tooling", | |
"../provisioner/roles/mongodb", | |
"../provisioner/roles/graylog2" | |
], | |
"playbook_dir": "playbooks", | |
"playbook_file": "playbooks/aws-local.yml" | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment