Commit 97066526 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

packer: cleanup indentation

parent f1e06894
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "centos67-testing-version", "name": "centos67-testing-version",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso", "iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso",
"iso_checksum": "9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498", "iso_checksum": "9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/setup-testing-version.sh", "scripts/setup-testing-version.sh",
"scripts/cleanup-centos.sh" "scripts/cleanup-centos.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "200000", "disk_size": "200000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "centos68-vm-bootstrap", "name": "centos68-vm-bootstrap",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso", "iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
"iso_checksum": "0ca12fe5f28c2ceed4f4084b41ff8a0b", "iso_checksum": "0ca12fe5f28c2ceed4f4084b41ff8a0b",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/cleanup-centos.sh", "scripts/cleanup-centos.sh",
"scripts/centos6-install-base.sh", "scripts/centos6-install-base.sh",
"scripts/vm-bootstrap.sh" "scripts/vm-bootstrap.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "centos-6-{{ user `disk_size`}}G-{{ user `name`}}", "name": "centos-6-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso", "iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
"iso_checksum": "0ca12fe5f28c2ceed4f4084b41ff8a0b", "iso_checksum": "0ca12fe5f28c2ceed4f4084b41ff8a0b",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/cleanup-centos.sh", "scripts/cleanup-centos.sh",
"scripts/centos6-install-base.sh", "scripts/centos6-install-base.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "centos7-testing-version", "name": "centos7-testing-version",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso", "iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso",
"iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620", "iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos7-anaconda-ks.cfg biosdevname=0 net.ifnames=0", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos7-anaconda-ks.cfg biosdevname=0 net.ifnames=0",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/setup-testing-version.sh", "scripts/setup-testing-version.sh",
"scripts/cleanup-centos.sh" "scripts/cleanup-centos.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "200000", "disk_size": "200000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "centos7-vm-bootstrap", "name": "centos7-vm-bootstrap",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso", "iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso",
"iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620", "iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos72-anaconda-ks.cfg biosdevname=0 net.ifnames=0", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos72-anaconda-ks.cfg biosdevname=0 net.ifnames=0",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/cleanup-centos.sh", "scripts/cleanup-centos.sh",
"scripts/centos7-install-base.sh", "scripts/centos7-install-base.sh",
"scripts/vm-bootstrap.sh" "scripts/vm-bootstrap.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "centos7-{{ user `disk_size`}}G-{{ user `name`}}", "name": "centos7-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso", "iso_url": "http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1708.iso",
"iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620", "iso_checksum": "fe3d960cce4d2c1c9f1b66817fe87cc0ee1a1c6c5dd126204cb5c33d51a45620",
"iso_checksum_type": "sha256", "iso_checksum_type": "sha256",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo poweroff", "shutdown_command": "sudo poweroff",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc>", "<esc>",
"<wait>", "<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos7-anaconda-ks.cfg biosdevname=0 net.ifnames=0", "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos7-anaconda-ks.cfg biosdevname=0 net.ifnames=0",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-centos.sh", "scripts/update-centos.sh",
"scripts/packages-centos.sh", "scripts/packages-centos.sh",
"scripts/cleanup-centos.sh", "scripts/cleanup-centos.sh",
"scripts/centos7-install-base.sh", "scripts/centos7-install-base.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-erp5-standalone", "name": "debian8-erp5-standalone",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=us ", "debian-installer=en_US locale=en_US keymap=us ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/setup-erp5-standalone.sh", "scripts/setup-erp5-standalone.sh",
"scripts/cleanup.sh" "scripts/cleanup.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-testing-version", "name": "debian8-testing-version",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=us ", "debian-installer=en_US locale=en_US keymap=us ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/setup-testing-version.sh", "scripts/setup-testing-version.sh",
"scripts/cleanup.sh" "scripts/cleanup.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "200000", "disk_size": "200000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-vm-bootstrap", "name": "debian8-vm-bootstrap",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=fr ", "debian-installer=en_US locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"scripts/vm-bootstrap.sh" "scripts/vm-bootstrap.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-webrunner", "name": "debian8-webrunner",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=us ", "debian-installer=en_US locale=en_US keymap=us ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/setup-webrunner-standalone.sh", "scripts/setup-webrunner-standalone.sh",
"scripts/cleanup.sh" "scripts/cleanup.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000", "disk_size": "100000",
"domain": "" "domain": ""
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-wendelin", "name": "debian8-wendelin",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=us ", "debian-installer=en_US locale=en_US keymap=us ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/setup-wendelin-standalone.sh", "scripts/setup-wendelin-standalone.sh",
"scripts/cleanup.sh" "scripts/cleanup.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "debian8-{{ user `disk_size`}}G-{{ user `name`}}", "name": "debian8-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso", "iso_url": "http://cdimage.debian.org/mirror/cdimage/archive/8.11.1/amd64/iso-cd/debian-8.11.1-amd64-netinst.iso",
"iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed", "iso_checksum": "df0ce86d0b1d81e232ad08eef58754ed",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian8.cfg ",
"debian-installer=en_US locale=en_US keymap=fr ", "debian-installer=en_US locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "6", "disk_size": "6",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh", "custom_script": "scripts/empty.sh",
"re6st_token": "{{env `RE6STTOKEN`}}", "re6st_token": "{{env `RE6STTOKEN`}}",
"computer_token": "{{env `COMPUTERTOKEN`}}" "computer_token": "{{env `COMPUTERTOKEN`}}",
"computer_name": "{{env `COMPUTERNAME`}}" "computer_name": "{{env `COMPUTERNAME`}}"
}, },
"builders": "builders":
[ [
{ {
"name": "debian9-rs-base-{{ user `disk_size`}}G-{{ user `name`}}", "name": "debian9-rs-base-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "raw", "format": "raw",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso", "iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso",
"iso_checksum": "e494e78d531352f0f3fdb210f13f7577", "iso_checksum": "e494e78d531352f0f3fdb210f13f7577",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian9.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian9.cfg ",
"debian-installer=en_US locale=en_US keymap=fr ", "debian-installer=en_US locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"environment_vars": ["re6st_token={{ user `re6st_token` }}", "computer_name={{user `computer_name`}}", "computer_token={{ user `computer_token` }}"], "environment_vars": ["re6st_token={{ user `re6st_token` }}", "computer_name={{user `computer_name`}}", "computer_token={{ user `computer_token` }}"],
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/network-debian9.sh", "scripts/network-debian9.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"scripts/setup-base-slapos.sh", "scripts/setup-base-slapos.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "debian9-{{ user `disk_size`}}G-{{ user `name`}}", "name": "debian9-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso", "iso_url": "https://cdimage.debian.org/mirror/cdimage/archive/9.9.0/amd64/iso-cd/debian-9.9.0-amd64-netinst.iso",
"iso_checksum": "e494e78d531352f0f3fdb210f13f7577", "iso_checksum": "e494e78d531352f0f3fdb210f13f7577",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true, "headless": true,
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><wait><wait>", "<esc><wait><wait>",
"install auto ", "install auto ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian9.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian9.cfg ",
"debian-installer=en_US locale=en_US keymap=fr ", "debian-installer=en_US locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ", "netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ", "netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ", "fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update.sh", "scripts/update.sh",
"scripts/packages.sh", "scripts/packages.sh",
"scripts/network-debian9.sh", "scripts/network-debian9.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000" "disk_size": "100000"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-14-04-server-testing-version", "name": "ubuntu-14-04-server-testing-version",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a", "iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ", "keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ", "keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ", "keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/setup-testing-version.sh", "scripts/setup-testing-version.sh",
"scripts/network-ubuntu.sh" "scripts/network-ubuntu.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000" "disk_size": "100000"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-14-04-server-vm-bootstrap", "name": "ubuntu-14-04-server-vm-bootstrap",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a", "iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ", "keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ", "keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ", "keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh", "scripts/network-ubuntu.sh",
"scripts/vm-bootstrap.sh" "scripts/vm-bootstrap.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-14-server-{{ user `disk_size`}}G-{{ user `name`}}", "name": "ubuntu-14-server-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a", "iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=pc101 ", "keyboard-configuration/modelcode=pc101 ",
"keyboard-configuration/layoutcode=fr ", "keyboard-configuration/layoutcode=fr ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh", "scripts/network-ubuntu.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000" "disk_size": "100000"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-15-04-server-testing-version", "name": "ubuntu-15-04-server-testing-version",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"iso_checksum": "487f4a81f22f8597503db3d51a1b502e", "iso_checksum": "487f4a81f22f8597503db3d51a1b502e",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ", "keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ", "keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ", "keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/setup-testing-version.sh", "scripts/setup-testing-version.sh",
"scripts/network-ubuntu.sh" "scripts/network-ubuntu.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"disk_size": "100000" "disk_size": "100000"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-15-04-server-vm-bootstrap", "name": "ubuntu-15-04-server-vm-bootstrap",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}", "disk_size": "{{ user `disk_size`}}",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"iso_checksum": "487f4a81f22f8597503db3d51a1b502e", "iso_checksum": "487f4a81f22f8597503db3d51a1b502e",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ", "keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ", "keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ", "keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh", "scripts/network-ubuntu.sh",
"scripts/vm-bootstrap.sh" "scripts/vm-bootstrap.sh"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-15-server-{{ user `disk_size`}}G-{{ user `name`}}", "name": "ubuntu-15-server-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"iso_checksum": "487f4a81f22f8597503db3d51a1b502e", "iso_checksum": "487f4a81f22f8597503db3d51a1b502e",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ", "/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ", "debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"keyboard-configuration/modelcode=pc101 ", "keyboard-configuration/modelcode=pc101 ",
"keyboard-configuration/layoutcode=fr ", "keyboard-configuration/layoutcode=fr ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>" "initrd=/install/initrd.gz -- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh", "scripts/network-ubuntu.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-16.04-server-{{ user `disk_size`}}G-{{ user `name`}}", "name": "ubuntu-16.04-server-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/16.04/ubuntu-16.04.2-server-amd64.iso",
"iso_checksum": "2bce60d18248df9980612619ff0b34e6", "iso_checksum": "2bce60d18248df9980612619ff0b34e6",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "sudo systemctl poweroff", "shutdown_command": "sudo systemctl poweroff",
"boot_wait": "3s", "boot_wait": "3s",
"boot_command": [ "boot_command": [
"<enter><wait>", "<enter><wait>",
"<f6><esc>", "<f6><esc>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>", "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs>", "<bs><bs><bs>",
"/install/vmlinuz ", "/install/vmlinuz ",
"initrd=/install/initrd.gz ", "initrd=/install/initrd.gz ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"net.ifnames=0 ", "net.ifnames=0 ",
"auto-install/enable=true ", "auto-install/enable=true ",
"debconf/priority=critical ", "debconf/priority=critical ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"noapic ", "noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu16.04.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu16.04.cfg ",
"<enter>" "<enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/grub-ubuntu.sh", "scripts/grub-ubuntu.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
{ {
"variables": { "variables": {
"user": "slapos", "user": "slapos",
"password": "slapos", "password": "slapos",
"domain": "", "domain": "",
"disk_size": "100", "disk_size": "100",
"name": "image", "name": "image",
"custom_script": "scripts/empty.sh" "custom_script": "scripts/empty.sh"
}, },
"builders": "builders":
[ [
{ {
"name": "ubuntu-16-server-{{ user `disk_size`}}G-{{ user `name`}}", "name": "ubuntu-16-server-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu", "type": "qemu",
"format": "qcow2", "format": "qcow2",
"accelerator": "kvm", "accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000", "disk_size": "{{ user `disk_size`}}000",
"headless": true, "headless": true,
"iso_url": "http://releases.ubuntu.com/16.10/ubuntu-16.10-server-amd64.iso", "iso_url": "http://releases.ubuntu.com/16.10/ubuntu-16.10-server-amd64.iso",
"iso_checksum": "7d6de832aee348bacc894f0a2ab1170d", "iso_checksum": "7d6de832aee348bacc894f0a2ab1170d",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"http_directory": "http", "http_directory": "http",
"ssh_username": "{{user `user`}}", "ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}", "ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s", "ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now", "shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s", "boot_wait": "2s",
"boot_command": [ "boot_command": [
"<esc><esc><enter><wait>", "<esc><esc><enter><wait>",
"/install/vmlinuz ", "/install/vmlinuz ",
"initrd=/install/initrd.gz ", "initrd=/install/initrd.gz ",
"hostname={{ .Name }} ", "hostname={{ .Name }} ",
"net.ifnames=0 ", "net.ifnames=0 ",
"auto-install/enable=true ", "auto-install/enable=true ",
"debconf/priority=critical ", "debconf/priority=critical ",
"passwd/user-fullname={{user `user`}} ", "passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ", "passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ", "passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ", "passwd/username={{user `user`}} ",
"noapic ", "noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu16.04.cfg ", "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu16.04.cfg ",
"-- <enter>" "-- <enter>"
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "shell", "type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'", "execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [ "scripts": [
"scripts/update-ubuntu.sh", "scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh", "scripts/packages-ubuntu.sh",
"scripts/grub-ubuntu.sh", "scripts/grub-ubuntu.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment