mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update Ansible support across several different areas Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"variables": {
|
|
"ami_name_prefix": "",
|
|
"aws_region": "",
|
|
"aws_vpc_id": "",
|
|
"aws_subnet_id": "",
|
|
"ami_description": ""
|
|
},
|
|
|
|
"builders": [
|
|
{
|
|
"type": "amazon-ebs",
|
|
"name": "{{ user `aws_region` }} {{ user `ami_description` }}",
|
|
"instance_type": "t2.micro",
|
|
"ssh_username": "ubuntu",
|
|
"associate_public_ip_address": true,
|
|
"region": "{{ user `aws_region` }}",
|
|
"source_ami_filter": {
|
|
"filters": {
|
|
"virtualization-type": "hvm",
|
|
"root-device-type": "ebs",
|
|
"name": "*ubuntu-trusty-14.04-amd64-server*"
|
|
},
|
|
"owners": ["099720109477"],
|
|
"most_recent": true
|
|
},
|
|
"vpc_id": "{{ user `aws_vpc_id` }}",
|
|
"subnet_id": "{{ user `aws_subnet_id` }}",
|
|
"ami_name": "{{ user `ami_name_prefix` }}-{{ isotime \"2006-01-02-15-04-05\" }}"
|
|
}
|
|
],
|
|
|
|
"provisioners": [
|
|
{
|
|
"type": "ansible",
|
|
"playbook_file": "ansible.yml"
|
|
}
|
|
]
|
|
}
|