github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/images/foundation-consul/template.json (about)

     1  {
     2    "variables": {
     3      "access_key": "{{ env `AWS_ACCESS_KEY` }}",
     4      "secret_key": "{{ env `AWS_SECRET_KEY` }}",
     5      "instance": "c3.large",
     6      "platform": "ubuntu"
     7    },
     8    "builders": [
     9      {
    10        "type": "amazon-ebs",
    11        "access_key": "{{ user `access_key` }}",
    12        "secret_key": "{{ user `secret_key` }}",
    13        "region": "us-east-1",
    14        "source_ami": "ami-21630d44",
    15        "instance_type": "{{ user `instance` }}",
    16        "ssh_username": "ubuntu",
    17        "ami_users": ["209146746714", "762203914556", "370500831042"],
    18        "ami_name": "otto-consul {{ timestamp }}",
    19        "tags": {
    20          "Name": "Otto: Consul"
    21        }
    22      }
    23    ],
    24    "provisioners": [
    25      {
    26        "type": "shell",
    27        "inline": [
    28          "mkdir /tmp/scripts"
    29        ]
    30      },
    31      {
    32        "type": "file",
    33        "source": "scripts/{{ user `platform` }}/",
    34        "destination": "/tmp/scripts"
    35      },
    36      {
    37        "type": "shell",
    38        "inline": [
    39          "chmod +x /tmp/scripts/install.sh",
    40          "sudo /tmp/scripts/install.sh"
    41        ]
    42      }
    43    ],
    44    "post-processors": [
    45      {
    46        "type": "atlas",
    47        "artifact": "hashicorp/otto-consul",
    48        "artifact_type": "amazon.ami"
    49      }
    50    ],
    51    "push": {
    52      "name": "hashicorp/otto-consul",
    53      "vcs": false
    54    }
    55  }