github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/images/app-go-dev/template.json (about)

     1  {
     2    "variables": {
     3        "version": "0.0.3"
     4    },
     5    "builders": [
     6      {
     7        "type": "virtualbox-iso",
     8        "boot_command": [
     9          "<esc><wait>",
    10          "<esc><wait>",
    11          "<enter><wait>",
    12          "/install/vmlinuz<wait>",
    13          " auto<wait>",
    14          " console-setup/ask_detect=false<wait>",
    15          " console-setup/layoutcode=us<wait>",
    16          " console-setup/modelcode=pc105<wait>",
    17          " debian-installer=en_US<wait>",
    18          " fb=false<wait>",
    19          " initrd=/install/initrd.gz<wait>",
    20          " kbd-chooser/method=us<wait>",
    21          " keyboard-configuration/layout=USA<wait>",
    22          " keyboard-configuration/variant=USA<wait>",
    23          " locale=en_US<wait>",
    24          " netcfg/get_hostname=ubuntu-1404<wait>",
    25          " netcfg/get_domain=vagrantup.com<wait>",
    26          " noapic<wait>",
    27          " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
    28          " -- <wait>",
    29          "<enter><wait>"
    30        ],
    31        "boot_wait": "10s",
    32        "disk_size": 40960,
    33        "guest_os_type": "Ubuntu_64",
    34        "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
    35        "guest_os_type": "Ubuntu_64",
    36        "http_directory": "{{pwd}}/app-go-dev/http",
    37        "iso_checksum": "9e5fecc94b3925bededed0fdca1bd417",
    38        "iso_checksum_type": "md5",
    39        "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.3-server-amd64.iso",
    40        "ssh_username": "vagrant",
    41        "ssh_password": "vagrant",
    42        "ssh_port": 22,
    43        "ssh_wait_timeout": "10000s",
    44        "shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
    45        "vboxmanage": [
    46          [ "modifyvm", "{{.Name}}", "--memory", "512" ],
    47          [ "modifyvm", "{{.Name}}", "--cpus", "1" ]
    48        ]
    49      },
    50      {
    51        "type": "vmware-iso",
    52        "boot_command": [
    53          "<esc><wait>",
    54          "<esc><wait>",
    55          "<enter><wait>",
    56          "/install/vmlinuz<wait>",
    57          " auto<wait>",
    58          " console-setup/ask_detect=false<wait>",
    59          " console-setup/layoutcode=us<wait>",
    60          " console-setup/modelcode=pc105<wait>",
    61          " debian-installer=en_US<wait>",
    62          " fb=false<wait>",
    63          " initrd=/install/initrd.gz<wait>",
    64          " kbd-chooser/method=us<wait>",
    65          " keyboard-configuration/layout=USA<wait>",
    66          " keyboard-configuration/variant=USA<wait>",
    67          " locale=en_US<wait>",
    68          " netcfg/get_hostname=ubuntu-1404<wait>",
    69          " netcfg/get_domain=vagrantup.com<wait>",
    70          " noapic<wait>",
    71          " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
    72          " -- <wait>",
    73          "<enter><wait>"
    74        ],
    75        "boot_wait": "10s",
    76        "disk_size": 40960,
    77        "guest_os_type": "linux",
    78        "http_directory": "{{pwd}}/app-go-dev/http",
    79        "iso_checksum": "9e5fecc94b3925bededed0fdca1bd417",
    80        "iso_checksum_type": "md5",
    81        "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.3-server-amd64.iso",
    82        "ssh_username": "vagrant",
    83        "ssh_password": "vagrant",
    84        "ssh_port": 22,
    85        "ssh_wait_timeout": "10000s",
    86        "shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'",
    87        "tools_upload_flavor": "linux",
    88        "vmx_data": {
    89          "memsize": "512",
    90          "numvcpus": "1",
    91          "cpuid.coresPerSocket": "1"
    92        }
    93      }
    94    ],
    95    "provisioners": [
    96      {
    97        "type": "shell",
    98        "execute_command": "echo 'vagrant'| {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
    99        "scripts": [
   100          "scripts/ubuntu/update.sh",
   101          "scripts/common/sshd.sh",
   102          "scripts/ubuntu/networking.sh",
   103          "scripts/ubuntu/sudoers.sh",
   104          "scripts/common/vagrant.sh",
   105          "scripts/common/vmtools.sh",
   106          "scripts/common/consul.sh",
   107          "scripts/common/consul-dev.sh",
   108          "scripts/common/go.sh",
   109          "scripts/ubuntu/cleanup.sh",
   110          "scripts/common/minimize.sh"
   111        ]
   112      }
   113    ],
   114    "post-processors": [
   115        [{
   116            "output": "builds/otto-go.{{.Provider}}.box",
   117            "type": "vagrant"
   118        },{
   119            "type": "atlas",
   120            "only": ["vmware-iso"],
   121            "artifact": "hashicorp/otto-go",
   122            "artifact_type": "vagrant.box",
   123            "metadata": {
   124                "provider": "vmware_desktop",
   125                "version": "{{ user `version` }}"
   126            }
   127        },
   128        {
   129            "type": "atlas",
   130            "only": ["virtualbox-iso"],
   131            "artifact": "hashicorp/otto-go",
   132            "artifact_type": "vagrant.box",
   133            "metadata": {
   134                "provider": "virtualbox",
   135                "version": "{{ user `version` }}"
   136            }
   137        }]
   138    ],
   139    "push": {
   140      "name": "hashicorp/otto-dev-go",
   141      "vcs": true,
   142      "base_dir": ".."
   143    }
   144  }