hub.fastgit.org/hashicorp/consul.git@v1.4.5/bench/bench-aws.json (about)

     1  {
     2      "variables": {
     3          "aws_access_key": "",
     4          "aws_secret_key": "",
     5          "source_ami": "ami-018c9568"
     6      },
     7      "builders": [
     8          {
     9          "type": "amazon-ebs",
    10          "access_key": "{{ user `aws_access_key` }}",
    11          "secret_key": "{{ user `aws_secret_key` }}",
    12          "region": "us-east-1",
    13          "instance_type": "m1.small",
    14          "source_ami": "{{ user `source_ami` }}",
    15          "ssh_username": "ubuntu",
    16          "ami_name": "bench-bootstrap-{{ timestamp }}",
    17          "name": "bootstrap"
    18      },
    19      {
    20          "type": "amazon-ebs",
    21          "access_key": "{{ user `aws_access_key` }}",
    22          "secret_key": "{{ user `aws_secret_key` }}",
    23          "region": "us-east-1",
    24          "instance_type": "m1.small",
    25          "source_ami": "{{ user `source_ami` }}",
    26          "ami_name": "bench-server-{{ timestamp }}",
    27          "ssh_username": "ubuntu",
    28          "name": "server"
    29      },
    30      {
    31          "type": "amazon-ebs",
    32          "access_key": "{{ user `aws_access_key` }}",
    33          "secret_key": "{{ user `aws_secret_key` }}",
    34          "region": "us-east-1",
    35          "instance_type": "m1.small",
    36          "source_ami": "{{ user `source_ami` }}",
    37          "ami_name": "bench-worker-{{ timestamp }}",
    38          "ssh_username": "ubuntu",
    39          "name": "worker"
    40      }
    41      ],
    42      "provisioners":[
    43      {
    44          "type": "file",
    45          "source": "conf/upstart.conf",
    46          "destination": "/tmp/upstart-consul.conf"
    47      },
    48      {
    49          "type": "shell",
    50          "inline": [
    51              "sudo mv /tmp/upstart-consul.conf /etc/init/consul.conf",
    52              "mkdir /tmp/consul.d",
    53              "sudo mkdir /etc/consul.d",
    54              "sudo apt-get update",
    55              "sudo apt-get install unzip make",
    56              "wget https://releases.hashicorp.com/consul/0.5.2/consul_0.5.2_linux_amd64.zip",
    57              "unzip 0.5.2_linux_amd64.zip",
    58              "sudo mv consul /usr/local/bin/consul",
    59              "chmod +x /usr/local/bin/consul"
    60          ]
    61      },
    62      {
    63          "type": "file",
    64          "source": "conf/common.json",
    65          "destination": "/tmp/consul.d/common-aws.json"
    66      },
    67      {
    68          "type": "file",
    69          "source": "conf/bootstrap.json",
    70          "destination": "/tmp/consul.d/bootstrap.json",
    71          "only": ["bootstrap"]
    72      },
    73      {
    74          "type": "file",
    75          "source": "conf/server.json",
    76          "destination": "/tmp/consul.d/server.json",
    77          "only": ["server"]
    78      },
    79      {
    80          "type": "file",
    81          "source": "Makefile",
    82          "destination": "/tmp/Makefile"
    83      },
    84      {
    85          "type": "shell",
    86          "inline": [
    87              "sudo curl https://s3.amazonaws.com/hc-ops/boom_linux_amd64 -o /usr/local/bin/boom",
    88              "sudo chmod +x /usr/local/bin/boom",
    89              "sudo mv /tmp/consul.d /etc/consul.d"
    90          ]
    91      }
    92      ]
    93  }