Commit 38db82c5 authored by Ivan Tyagov's avatar Ivan Tyagov

Merge remote-tracking branch 'upstream/master'

parents 6d851db1 addcd9c2
...@@ -23,7 +23,7 @@ pointing to it. For example, the vifib test directory:: ...@@ -23,7 +23,7 @@ pointing to it. For example, the vifib test directory::
And whenever you want to push updates:: And whenever you want to push updates::
A$ ./make osc A$ ./make osc
A$ (cd osc; osc commit) A$ (cd osc && osc commit)
Warning about SlapOS updates Warning about SlapOS updates
---------------------------- ----------------------------
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
# -*- makefile -*- # -*- makefile -*-
#export DH_VERBOSE=1 #export DH_VERBOSE=1
# WKRD: gettext
export DEB_BUILD_MAINT_OPTIONS = hardening=-format
include debian/common.mk include debian/common.mk
override_dh_auto_install: override_dh_auto_install:
......
...@@ -53,7 +53,7 @@ PACKAGE = "re6st-node" ...@@ -53,7 +53,7 @@ PACKAGE = "re6st-node"
BIN = "re6st-conf re6st-registry re6stnet".split() BIN = "re6st-conf re6st-registry re6stnet".split()
BUILD_KEEP = "babeld", "buildout.cfg", "download-cache", "extends-cache" BUILD_KEEP = "babeld", "buildout.cfg", "download-cache", "extends-cache"
NOPART = "chrpath flex glib lunzip m4 patch perl popt site_perl xz-utils".split() NOPART = "chrpath bison flex lunzip m4 patch perl popt site_perl xz-utils".split()
TARGET = "opt/re6st" TARGET = "opt/re6st"
ROOT = "build" ROOT = "build"
...@@ -200,10 +200,10 @@ def deb(task): ...@@ -200,10 +200,10 @@ def deb(task):
d["Version"] = VERSION d["Version"] = VERSION
d["Architecture"] = b["Architecture"] = "any" d["Architecture"] = b["Architecture"] = "any"
d["Build-Depends"] = s["Build-Depends"] = \ d["Build-Depends"] = s["Build-Depends"] = \
"python (>= 2.6), debhelper (>= 8), iproute2 | iproute" "python (>= 2.7), debhelper (>= 9.20120909), iproute2 | iproute"
b["Depends"] = "${shlibs:Depends}, iproute2 | iproute" b["Depends"] = "${shlibs:Depends}, iproute2 | iproute"
b["Conflicts"] = b["Provides"] = b["Replaces"] = "re6stnet" b["Conflicts"] = b["Provides"] = b["Replaces"] = "re6stnet"
patched_control = StringIO(str("%s\n%s" % (s, b))) # BBB: cast to str for Python 2.6 patched_control = StringIO("%s\n%s" % (s, b))
open(task.outputs[1], "w").write(str(d)) open(task.outputs[1], "w").write(str(d))
date = rfc822.parsedate_tz(Changelog(open(dch.output)).date) date = rfc822.parsedate_tz(Changelog(open(dch.output)).date)
mtime = time.mktime(date[:9]) - date[9] mtime = time.mktime(date[:9]) - date[9]
......
...@@ -21,7 +21,9 @@ Depends: ${misc:Depends}, ...@@ -21,7 +21,9 @@ Depends: ${misc:Depends},
gcc | c-compiler, gcc | c-compiler,
g++ | c++-compiler, g++ | c++-compiler,
make, make,
patch patch,
# slapos node collect
lm-sensors
Conflicts: firewalld Conflicts: firewalld
Description: Client-side to deploy applications with SlapOS Description: Client-side to deploy applications with SlapOS
SlapOS allows one to turn any application into SaaS (Service as a System), SlapOS allows one to turn any application into SaaS (Service as a System),
......
...@@ -51,3 +51,28 @@ ...@@ -51,3 +51,28 @@
notifempty notifempty
sharedscripts sharedscripts
} }
/srv/slapgrid/*/.slapgrid/monitor/*.data.json /srv/slapgrid/*/.slapgrid/promise/history/*.history.json {
weekly
nocreate
rotate 104
nocompress
missingok
extension .json
dateext
dateformat -%Y-%m-%d
notifempty
}
/srv/slapgrid/*/.slapgrid/promise/promise_stats.json {
weekly
nocreate
rotate 104
nocompress
missingok
extension .json
dateext
dateformat -%Y-%m-%d
notifempty
}
...@@ -17,22 +17,29 @@ echo "Preparing source tarball (recipe version: $RECIPE_VERSION)" ...@@ -17,22 +17,29 @@ echo "Preparing source tarball (recipe version: $RECIPE_VERSION)"
echo " Build Directory: $BUILD_DIRECTORY " echo " Build Directory: $BUILD_DIRECTORY "
echo " Buildroot Directory: $BUILD_ROOT_DIRECTORY " echo " Buildroot Directory: $BUILD_ROOT_DIRECTORY "
mkdir -p $BUILD_DIRECTORY/{eggs,extends-cache,download-cache,download-cache/dist} mkdir -p $BUILD_DIRECTORY/{eggs,extends-cache,download-cache,download-cache/dist,tmp-networkcached/eggs}
set -e set -e
sed "s/\%RECIPE_VERSION\%/$RECIPE_VERSION/g;s|\%PATCHES_DIRECTORY\%|$PATCHES_DIRECTORY|g;s|\%TARGET_DIRECTORY\%|$TARGET_DIRECTORY|g;s|\%BUILD_ROOT_DIRECTORY\%|$BUILD_ROOT_DIRECTORY|g;s|\%BUILD_DIRECTORY\%|$BUILD_DIRECTORY|g" $BUILD_ROOT_DIRECTORY/../buildout.cfg.in > $BUILD_DIRECTORY/buildout.cfg echo "Preparing networkcached zc.buildout"
NETWORKCACHED_DIRECTORY=$BUILD_DIRECTORY/tmp-networkcached
sed "s/\%RECIPE_VERSION\%/$RECIPE_VERSION/g;s|\%PATCHES_DIRECTORY\%|$PATCHES_DIRECTORY|g;s|\%TARGET_DIRECTORY\%|$TARGET_DIRECTORY|g;s|\%BUILD_ROOT_DIRECTORY\%|$BUILD_ROOT_DIRECTORY|g;s|\%BUILD_DIRECTORY\%|$BUILD_DIRECTORY|g" $BUILD_ROOT_DIRECTORY/../networkcached.cfg.in > $NETWORKCACHED_DIRECTORY/buildout.cfg
cd $NETWORKCACHED_DIRECTORY
# Download bootstrap file
wget https://bootstrap.pypa.io/bootstrap-buildout.py -O bootstrap.py
(python -S bootstrap.py --buildout-version $BUILDOUT_VERSION \
--setuptools-to-dir eggs \
-f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \
./bin/buildout -v)
sed "s/\%RECIPE_VERSION\%/$RECIPE_VERSION/g;s|\%PATCHES_DIRECTORY\%|$PATCHES_DIRECTORY|g;s|\%TARGET_DIRECTORY\%|$TARGET_DIRECTORY|g;s|\%BUILD_ROOT_DIRECTORY\%|$BUILD_ROOT_DIRECTORY|g;s|\%BUILD_DIRECTORY\%|$BUILD_DIRECTORY|g" $BUILD_ROOT_DIRECTORY/../buildout.cfg.in > $BUILD_DIRECTORY/buildout.cfg
# Build first time to get download-cache and extends-cache ready # Build first time to get download-cache and extends-cache ready
cd $BUILD_DIRECTORY cd $BUILD_DIRECTORY
echo "$BUILD_ROOT_DIRECTORY" > $CURRENT_DIRECTORY/$SLAPOS_DIRECTORY/slapos/original_directory echo "$BUILD_ROOT_DIRECTORY" > $CURRENT_DIRECTORY/$SLAPOS_DIRECTORY/slapos/original_directory
# Download bootstrap file ($NETWORKCACHED_DIRECTORY/bin/buildout bootstrap --buildout-version $BUILDOUT_VERSION \
wget https://bootstrap.pypa.io/bootstrap-buildout.py --no-check-certificate -O bootstrap.py
(python -S bootstrap.py --buildout-version $BUILDOUT_VERSION \
--setuptools-to-dir eggs \ --setuptools-to-dir eggs \
-f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \ -f http://www.nexedi.org/static/packages/source/slapos.buildout/ && \
./bin/buildout -v) || (./bin/buildout -v || (echo "Failed to run buildout, exiting." && exit 1)) ./bin/buildout -v) || (./bin/buildout -v || (echo "Failed to run buildout, exiting." && exit 1))
...@@ -53,7 +60,7 @@ rm -rfv ./{downloads,parts,eggs,develop-eggs,bin,rebootstrap} ...@@ -53,7 +60,7 @@ rm -rfv ./{downloads,parts,eggs,develop-eggs,bin,rebootstrap}
find . -type d -empty -prune -exec rmdir '{}' ';' find . -type d -empty -prune -exec rmdir '{}' ';'
mkdir -p $BUILD_DIRECTORY/eggs mkdir -p $BUILD_DIRECTORY/eggs
python -S bootstrap.py --buildout-version $BUILDOUT_VERSION \ $NETWORKCACHED_DIRECTORY/bin/buildout bootstrap --buildout-version $BUILDOUT_VERSION \
--setuptools-to-dir eggs \ --setuptools-to-dir eggs \
-f http://www.nexedi.org/static/packages/source/ \ -f http://www.nexedi.org/static/packages/source/ \
-f http://www.nexedi.org/static/packages/source/slapos.buildout/ -f http://www.nexedi.org/static/packages/source/slapos.buildout/
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Edit for release # Edit for release
VERSION=`grep ^slapos.core slapos_repository/stack/slapos.cfg | cut -f3 -d\ ` VERSION=`grep ^slapos.core slapos_repository/stack/slapos.cfg | cut -f3 -d\ `
# Edit for release # Edit for release
RECIPE_VERSION=1.0.83.1 RECIPE_VERSION=`cd slapos_repository && git describe --tags $(git rev-list --tags --max-count=1)`
# Edit for release # Edit for release
RELEASE=1 RELEASE=1
......
[buildout]
rootdir = %TARGET_DIRECTORY%
destdir = %BUILD_ROOT_DIRECTORY%
builddir = %BUILD_DIRECTORY%
extends =
%BUILD_ROOT_DIRECTORY%/../slapos_repository/component/slapos/obs.cfg
extensions =
parts =
networkcached
[networkcached]
recipe = zc.recipe.egg
eggs =
slapos.libnetworkcache
zc.buildout
...@@ -50,16 +50,16 @@ Packager: Rafael Monnerat <rafael@nexedi.com> ...@@ -50,16 +50,16 @@ Packager: Rafael Monnerat <rafael@nexedi.com>
%if 0%{?suse_version} == 1210 %if 0%{?suse_version} == 1210
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml
Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml, lm_sensors
%else %else
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel, python-xml
Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml Requires: bridge-utils, python, gcc-c++, make, patch, wget, python-xml, lm_sensors
%endif %endif
%else %else
BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel BuildRequires: gcc-c++, make, patch, wget, python, python-devel, chrpath, openssl-devel
Requires: bridge-utils, python, gcc-c++, make, patch, wget Requires: bridge-utils, python, gcc-c++, make, patch, wget, lm_sensors
%endif %endif
AutoReqProv: no AutoReqProv: no
......
{ {
"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": {
"user": "slapos",
"password": "slapos",
"domain": "",
"disk_size": "100",
"name": "image",
"custom_script": "scripts/empty.sh"
},
"builders":
[
{
"name": "debian10-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu",
"format": "qcow2",
"accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000",
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.2.0-amd64-netinst.iso",
"iso_checksum": "36de671429939e90f2a31ce3fbed0aaf",
"iso_checksum_type": "md5",
"http_directory": "http",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"headless": true,
"boot_wait": "2s",
"boot_command": [
"<esc><wait><wait><wait><wait>",
"auto preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-debian10.cfg ",
"debian-installer=en_US.UTF-8 locale=en_US keymap=fr ",
"netcfg/get_hostname={{ .Name }} ",
"netcfg/get_domain={{ user `domain`}} ",
"fb=false debconf/frontend=noninteractive ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/username={{user `user`}} ",
"<enter>"
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update.sh",
"scripts/packages.sh",
"scripts/network-debian.sh",
"scripts/cleanup.sh",
"{{ 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-debian.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-debian.sh",
"scripts/cleanup.sh", "scripts/cleanup.sh",
"{{ user `custom_script` }}" "{{ user `custom_script` }}"
] ]
} }
] ]
} }
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select fr
d-i time/zone string Europe/Paris
d-i clock-setup/utc boolean true
d-i apt-setup/enable-source-repositories string false
#d-i apt-setup/use_mirror boolean true
d-i auto-install/enable string true
d-i base-installer/install-recommends string false
#d-i debconf/priority string critical
d-i finish-install/reboot_in_progress string note
d-i netcfg/choose_interface select auto
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.fr.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string regular
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/default_filesystem string ext4
d-i passwd/make-user string false
d-i passwd/root-login string false
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
# Individual additional packages to install
# all the packages below are installed through tasksel "standard"
#d-i pkgsel/include string ssh aptitude bwm-ng ca-certificates dbus-user-session debian-goodies dnsutils eatmydata efibootmgr gdb git gnupg host htop iotop linux-cpupower linux-perf lm-sensors lsof man-db ndisc6 netcat-openbsd openssh-server python resolvconf rsync screen smartmontools socat strace sudo systemd-coredump vim wget
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# To install to the first device (assuming it is not a USB stick):
d-i grub-installer/bootdev string default
d-i preseed/include string ../preseed-ubuntu.cfg
d-i preseed/early_command string \
mkdir -p /usr/lib/post-base-installer.d && \
echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \
chmod +x /usr/lib/post-base-installer.d/90skip-tasksel
d-i preseed/late_command string \
echo 'Defaults:slapos !requiretty' > /target/etc/sudoers.d/slapos; \
echo 'slapos ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/slapos; \
chmod 440 /target/etc/sudoers.d/slapos ; \
ln -sf /dev/null /target/etc/systemd/network/99-default.link; \
in-target update-initramfs -u
d-i preseed/include string ../ubuntu-preseed.cfg
d-i preseed/early_command string \
mkdir -p /usr/lib/post-base-installer.d && \
echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \
chmod +x /usr/lib/post-base-installer.d/90skip-tasksel
d-i preseed/late_command string \
echo 'Defaults:slapos !requiretty' > /target/etc/sudoers.d/slapos; \
echo 'slapos ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/slapos; \
chmod 440 /target/etc/sudoers.d/slapos ; \
ln -sf /dev/null /target/etc/systemd/network/99-default.link; \
in-target update-initramfs -u
choose-mirror-bin mirror/http/proxy string
d-i debconf/frontend select noninteractive
d-i base-installer/kernel/override-image string linux-server
d-i debian-installer/locale string en_US
d-i time/zone string CET
d-i keyboard-configuration/xkb-keymap select fr
d-i partman-auto/method string regular
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i base-installer/excludes string laptop-detect
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false
d-i pkgsel/include string curl openssh-server sudo
d-i pkgsel/language-packs multiselect
d-i grub-installer/only_debian boolean true
d-i finish-install/reboot_in_progress note
d-i preseed/early_command string \
mkdir -p /usr/lib/post-base-installer.d && \
echo "sed -i -e 's/^in-target.*tasksel.*/#\\0/' /var/lib/dpkg/info/pkgsel.postinst" > /usr/lib/post-base-installer.d/90skip-tasksel && \
chmod +x /usr/lib/post-base-installer.d/90skip-tasksel
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
# provide ifconfig command # provide ifconfig command
apt-get install -y net-tools apt-get install -y net-tools
# change default interface name to eth0 schema # Starting from Debian9 primary interface is not named eth0 anymore
# enable memory hotplug auto configuration # so change default interface name to eth0 schema.
# Also, enable memory hotplug auto configuration
sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 memhp_default_state=online"#' /etc/default/grub sed -i 's#GRUB_CMDLINE_LINUX=.*#GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 memhp_default_state=online"#' /etc/default/grub
......
{ {
"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` }}"
] ]
} }
] ]
} }
{
"variables": {
"user": "slapos",
"password": "slapos",
"domain": "",
"disk_size": "100",
"name": "image",
"custom_script": "scripts/empty.sh"
},
"builders":
[
{
"name": "ubuntu-18.04-server-{{ user `disk_size`}}G-{{ user `name`}}",
"type": "qemu",
"format": "qcow2",
"accelerator": "kvm",
"disk_size": "{{ user `disk_size`}}000",
"headless": true,
"iso_url": "http://cdimage.ubuntu.com/releases/18.04.1/release/ubuntu-18.04.1-server-amd64.iso",
"iso_checksum": "e8264fa4c417216f4304079bd94f895e",
"iso_checksum_type": "md5",
"http_directory": "http",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "1800s",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "2s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"auto=true ",
"debconf/priority=critical ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=FR ",
"keyboard-configuration/variant=FR console-setup/ask_detect=false ",
"net.ifnames=0 ",
"hostname={{ .Name }} ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu18.04.cfg ",
"-- <enter>"
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/grub-ubuntu.sh",
"{{ user `custom_script` }}"
]
}
]
}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
connection: local connection: local
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.112/software/erp5/software.cfg software_release_url: https://lab.nexedi.com/nexedi/slapos/raw/1.0.134/software/erp5/software.cfg
bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard
startup_playbook_id: erp5-standalone.yml startup_playbook_id: erp5-standalone.yml
playbook_name: erp5 playbook_name: erp5
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
- dateext - dateext
roles: roles:
- { role: package, package_name: python-requests, package_state: present, when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 10}
- { role: vm-bootstrap, startup_playbook_id: imt-vm-bootstrap.yml } - { role: vm-bootstrap, startup_playbook_id: imt-vm-bootstrap.yml }
- ntp - ntp
- { role: vm-disks, vd_disk: b, data_n: 1, when: vd_list.stdout.find("vdb") != -1 } - { role: vm-disks, vd_disk: b, data_n: 1, when: vd_list.stdout.find("vdb") != -1 }
......
...@@ -5,3 +5,7 @@ ...@@ -5,3 +5,7 @@
- name: Install {{ package_name }} using yum - name: Install {{ package_name }} using yum
yum: name={{ package_name }} state={{ package_state }} update_cache=yes yum: name={{ package_name }} state={{ package_state }} update_cache=yes
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
- name: Install {{ package_name }} using zypper
zypper: name={{ package_name }} state={{ package_state }} update_cache=yes
when: ansible_os_family == "Suse"
#!/bin/bash #!/bin/bash
# Re6st peers communicate with each other on port 326.
# Port 6696 is used by Babel (routing protocol).
# ( "$ man re6stnet" for more information)
if [ -f /sbin/ip6tables ]; then if [ -f /sbin/ip6tables ]; then
if [ 0 -ne `ip6tables -L | grep -E "(DROP|REJECT)" | wc -l` ]; then if [ 0 -ne `ip6tables -L | grep -E "(DROP|REJECT)" | wc -l` ]; then
ip6tables -P FORWARD ACCEPT ip6tables -P FORWARD ACCEPT
......
--- ---
- name: Unistall firewalld on OpenSuse Leap 15
zypper: name=firewalld state=absent
when: ansible_os_family == "Suse" and ansible_distribution_major_version == "15"
- name: Check if configuration already exists - name: Check if configuration already exists
stat: path=/etc/re6stnet/re6stnet.conf stat: path=/etc/re6stnet/re6stnet.conf
register: re6stnet_conf register: re6stnet_conf
......
- apt: name=gpg state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "10"
- name: Check if RINA is already installed - include: fedora_init.yml
stat: path=/usr/bin/ipcm
register: ipcm
- name: Remove legacy repositories from git.erp5.org - include: debian_init.yml
apt_key: id=1A716324 state=absent
when: ansible_distribution == "Debian" and not (rina or ipcm.stat.exists)
- name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months). - name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months).
apt_key: id=94A63987 state=absent apt_key: id=94A63987 state=absent
...@@ -14,8 +10,6 @@ ...@@ -14,8 +10,6 @@
- file: path=/etc/apt/sources.list.d/re6stnet.list state=absent - file: path=/etc/apt/sources.list.d/re6stnet.list state=absent
when: ansible_distribution == "Debian" when: ansible_distribution == "Debian"
- include: fedora_init.yml
- name: Install Debian 10 repository key - name: Install Debian 10 repository key
apt_key: url={{ base_open_build_url }}/Debian_10/Release.key state=present apt_key: url={{ base_open_build_url }}/Debian_10/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "10" when: ansible_distribution == "Debian" and ansible_distribution_major_version == "10"
...@@ -112,6 +106,14 @@ ...@@ -112,6 +106,14 @@
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_18.04/ ./' state=present apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_18.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "18.04" when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "18.04"
- name: Install Ubuntu 19.10 repository key
apt_key: url={{ base_open_build_url }}/xUbuntu_19.10/Release.key state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "19.10"
- name: Install Ubuntu 19.10 repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_19.10/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "19.10"
- name: Install CentOS 7 Repository - name: Install CentOS 7 Repository
get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440 get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
...@@ -138,4 +140,10 @@ ...@@ -138,4 +140,10 @@
rpm_key: state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/Fedora_26/repodata/repomd.xml.key rpm_key: state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/Fedora_26/repodata/repomd.xml.key
when: ansible_distribution == "Fedora" and ansible_distribution_major_version == "26" when: ansible_distribution == "Fedora" and ansible_distribution_major_version == "26"
- name: Install OpenSuse Leap 15 RPM Key
rpm_key: state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_Leap_15.1/repodata/repomd.xml.key
when: ansible_distribution == "Suse" and ansible_distribution_major_version == "15"
- name: Install OpenSuse Leap 15 repository
get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/openSUSE_Leap_15.1/home:VIFIBnexedi.repo dest=/etc/zypp/repos.d/home_VIFIBnexedi.repo mode=0440
when: ansible_os_family == "Suse" and ansible_distribution_major_version == "15"
...@@ -12,22 +12,10 @@ ...@@ -12,22 +12,10 @@
ignore_errors: True ignore_errors: True
register: pip3_installed register: pip3_installed
- name: Make sure pip is installed - name: Install slapcache on Debian < 9
shell: easy_install pip include: pip_installations_success.yml
when: pip_installed is failed and pip3_installed is failed when: ansible_distribution == "Debian" and ansible_distribution_major_version|int < 9
- name: Install/Upgrade latest slapos.libnetworkcache using pip - name: Install slapcache on Debian >= 9
shell: pip install --upgrade slapos.libnetworkcache include: pip_installations_succeeded.yml
when: pip_installed is success when: ansible_distribution == "Debian" and ansible_distribution_major_version|int >= 9
- name: Install/Upgrade latest slapcache using pip
shell: pip install --upgrade slapcache
when: pip_installed is success
- name: Install/Upgrade latest slapos.libnetworkcache using pip3
shell: pip3 install --upgrade slapos.libnetworkcache
when: pip3_installed is success
- name: Install/Upgrade latest slapcache using pip3
shell: pip3 install --upgrade slapcache
when: pip3_installed is success
# Installations on newest Ansible which supports succeeded
- name: Make sure pip is installed
shell: easy_install pip
when: pip_installed is failed and pip3_installed is failed
- name: Install/Upgrade latest slapos.libnetworkcache using pip
shell: pip install --upgrade slapos.libnetworkcache
when: pip_installed is succeeded
- name: Install/Upgrade latest slapcache using pip
shell: pip install --upgrade slapcache
when: pip_installed is succeeded
- name: Install/Upgrade latest slapos.libnetworkcache using pip3
shell: pip3 install --upgrade slapos.libnetworkcache
when: pip3_installed is succeeded
- name: Install/Upgrade latest slapcache using pip3
shell: pip3 install --upgrade slapcache
when: pip3_installed is succeeded
# Installations on old Ansible where tests are filter like
- name: Make sure pip is installed
shell: easy_install pip
when: pip_installed | failed and pip3_installed | failed
- name: Install/Upgrade latest slapos.libnetworkcache using pip
shell: pip install --upgrade slapos.libnetworkcache
when: pip_installed | success
- name: Install/Upgrade latest slapcache using pip
shell: pip install --upgrade slapcache
when: pip_installed | success
- name: Install/Upgrade latest slapos.libnetworkcache using pip3
shell: pip3 install --upgrade slapos.libnetworkcache
when: pip3_installed | success
- name: Install/Upgrade latest slapcache using pip3
shell: pip3 install --upgrade slapcache
when: pip3_installed | success
#!/usr/bin/python2.7 #!/opt/slapos/parts/python2.7/bin/python2.7
import os import os
import sys import sys
...@@ -20,7 +20,7 @@ def fmt_date(): ...@@ -20,7 +20,7 @@ def fmt_date():
def discover_software(): def discover_software():
conn = sqlite3.connect("/opt/slapos/slapproxy.db") conn = sqlite3.connect("/opt/slapos/slapproxy.db")
cur = conn.cursor() cur = conn.cursor()
qry = cur.execute("SELECT DISTINCT url FROM software13") qry = cur.execute("SELECT DISTINCT url FROM software14")
return [row[0] for row in qry if row[0]] return [row[0] for row in qry if row[0]]
def get_connection_information(software_release): def get_connection_information(software_release):
...@@ -34,7 +34,7 @@ def get_connection_information(software_release): ...@@ -34,7 +34,7 @@ def get_connection_information(software_release):
else: else:
raise ValueError raise ValueError
qry = cur.execute("SELECT connection_xml FROM partition13 WHERE connection_xml IS NOT NULL AND software_release=? AND partition_reference LIKE ?", (software_release, partition_reference) ) qry = cur.execute("SELECT connection_xml FROM partition14 WHERE connection_xml IS NOT NULL AND software_release=? AND partition_reference LIKE ?", (software_release, partition_reference) )
xml = None xml = None
for row in qry: for row in qry:
xml = str(row[0]) xml = str(row[0])
...@@ -75,7 +75,7 @@ def get_connection_information(software_release): ...@@ -75,7 +75,7 @@ def get_connection_information(software_release):
def check_tables(): def check_tables():
conn = sqlite3.connect("/opt/slapos/slapproxy.db") conn = sqlite3.connect("/opt/slapos/slapproxy.db")
cur = conn.cursor() cur = conn.cursor()
qry = cur.execute("SELECT CASE WHEN tbl_name = 'partition13' THEN 1 ELSE 0 END FROM sqlite_master WHERE tbl_name = 'partition13' AND type = 'table'") qry = cur.execute("SELECT CASE WHEN tbl_name = 'partition14' THEN 1 ELSE 0 END FROM sqlite_master WHERE tbl_name = 'partition14' AND type = 'table'")
if qry is None: if qry is None:
print "tables aren't ready yet, your build may have failed, check logs in /opt/slapos/log/" print "tables aren't ready yet, your build may have failed, check logs in /opt/slapos/log/"
......
...@@ -11,6 +11,7 @@ parameter_dict = { ...@@ -11,6 +11,7 @@ parameter_dict = {
"timezone": "UTC", "timezone": "UTC",
"site-id": "erp5", "site-id": "erp5",
"bt5": "{{ bt5_list }}", "bt5": "{{ bt5_list }}",
"wsgi": True,
"zope-partition-dict": { "zope-partition-dict": {
"admin": { "admin": {
"family": "admin", "family": "admin",
......
...@@ -5,7 +5,7 @@ export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ...@@ -5,7 +5,7 @@ export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Once caucase is merged and used by the master the need of this workarround will be gone, and # Once caucase is merged and used by the master the need of this workarround will be gone, and
# A better configuration can be proposes # A better configuration can be proposes
slap_ipv4=`/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db "select address from partition_network13 where partition_reference=(select reference from partition13 where software_type = 'balancer' and requested_by = (select reference from partition13 where partition_reference='{{ backend_instance_reference }}')) and netmask='255.255.255.255';"` slap_ipv4=`/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db "select address from partition_network14 where partition_reference=(select reference from partition14 where software_type = 'balancer' and requested_by = (select reference from partition14 where partition_reference='{{ backend_instance_reference }}')) and netmask='255.255.255.255';"`
local_access_comment="Local {{ playbook_name }} IPv4 access" local_access_comment="Local {{ playbook_name }} IPv4 access"
remote_access_comment="Remote {{ playbook_name }} IPv4 access" remote_access_comment="Remote {{ playbook_name }} IPv4 access"
......
#!/bin/bash #!/bin/bash
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
frontend_ipv4=`/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db "select address from partition_network13 where partition_reference=(select reference from partition13 where requested_by = (select reference from partition13 where partition_reference='{{ frontend_master_reference }}')) and netmask='255.255.255.255';"` frontend_ipv4=`/opt/slapos/parts/sqlite3/bin/sqlite3 /opt/slapos/slapproxy.db "select address from partition_network14 where partition_reference=(select reference from partition14 where requested_by = (select reference from partition14 where partition_reference='{{ frontend_master_reference }}')) and netmask='255.255.255.255';"`
local_access_comment="Local {{ playbook_name }} IPv4 access" local_access_comment="Local {{ playbook_name }} IPv4 access"
remote_access_comment="Remote {{ playbook_name }} IPv4 access" remote_access_comment="Remote {{ playbook_name }} IPv4 access"
......
frontend_software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56.1/software/apache-frontend/software.cfg frontend_software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.135/software/apache-frontend/software.cfg
firewall_setup_template: setup-firewall.j2 firewall_setup_template: setup-firewall.j2
frontend_master_reference: master-frn-{{ playbook_name }} frontend_master_reference: master-frn-{{ playbook_name }}
frontend_slave_reference: slave-srn-{{ playbook_name }} frontend_slave_reference: slave-srn-{{ playbook_name }}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9" when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
- name: Install kernel 4.9 on debian 9.0 - name: Install kernel 4.9 on debian 9.0
apt: name=linux-image-4.9.0-10-amd64 state=latest default_release=oldstable-proposed-updates update_cache=no apt: name=linux-image-4.9.0-11-amd64 state=latest default_release=oldstable-proposed-updates update_cache=no
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9" when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
notify: [ 'Mark to reboot' ] notify: [ 'Mark to reboot' ]
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- include: shuttle-modprobe.yml - include: shuttle-modprobe.yml
- name: Increase ulimit - name: Increase ulimit
shell: echo "TODO" copy: src="slapos_limit.conf" dest="/etc/security/limits.d/slapos.conf" mode=0644 owner=root group=root
- name: Set Cron - name: Set Cron
cron: name="Launch Startup with ansible" special_time=reboot job='cd /opt/upgrader/playbook && ansible-playbook vifib-startup.yml -i hosts 2>>/opt/upgrader/startup.log >> /opt/upgrader/startup.log' cron: name="Launch Startup with ansible" special_time=reboot job='cd /opt/upgrader/playbook && ansible-playbook vifib-startup.yml -i hosts 2>>/opt/upgrader/startup.log >> /opt/upgrader/startup.log'
......
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6l9E+0SN6oZbJXF8iOYZBSG+GmWjzjcqkyqUPk/UyL2riS/82qGdzAxa30/ChU41Yo9DEpIlaUZS9EwCQCBf2R+EUAJWn3/tHPRxtzU5g5+MLjHamnLvt7HlsewCYbR2ln5aOVU/jMQMXLCrP770fFRaP+if5G4mcyD6t5OqjUivqlqVUvXIqhogrRPX3+iIvep9CZGkzijm98O9PFeGPY+zcZTkHyjPMQu4S83jio55s3WyvK4/SSSkcn/Lb0mCFAGFN11qijNKsWRN1lLagHOch2YyAiY9ttna6gJJvExPfqpjpsR1FvkBkwgMnR1IGxk4w6SkeqXNRa6fg589V cardno:000604886723 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpsvO1sWW4iHR4bmYerw4D/urBDeeLUa8BJYK9WV3kQx9nZFotGWsxPOV7a+TmZUrT5rfsHs4C9sR3rQZ3YZpBMYUd+fORrfYBy9R613HCXfCVn918FxjJJi7pcsekthYaWHezuWLbnhpCiNbTY3ymNmjOgaeXKcVELb7uJVBPJHH+LLIPHn5TZxiiP5jIqyCTlLMog2vriJCYHcRYM8urxPN9TlKTzvSfdIqzKzqUHAy13yoY6ZAOeaVnxHU0jG6wq23iJS2Qbjcq61cOuJhM0HAaUA3Mh/e1QydpkMyLlpzGg5Ot+1XrqA/hPG6GkR9Ce0P7inN9IjwKZoSUwW83 jerome@nexedi.com
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6l9E+0SN6oZbJXF8iOYZBSG+GmWjzjcqkyqUPk/UyL2riS/82qGdzAxa30/ChU41Yo9DEpIlaUZS9EwCQCBf2R+EUAJWn3/tHPRxtzU5g5+MLjHamnLvt7HlsewCYbR2ln5aOVU/jMQMXLCrP770fFRaP+if5G4mcyD6t5OqjUivqlqVUvXIqhogrRPX3+iIvep9CZGkzijm98O9PFeGPY+zcZTkHyjPMQu4S83jio55s3WyvK4/SSSkcn/Lb0mCFAGFN11qijNKsWRN1lLagHOch2YyAiY9ttna6gJJvExPfqpjpsR1FvkBkwgMnR1IGxk4w6SkeqXNRa6fg589V cardno:000604886723
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
- name: Add LNC SSH Key - name: Add LNC SSH Key
authorized_key: user=root key="{{ lookup('file', 'luke_chronos_key') }}" authorized_key: user=root key="{{ lookup('file', 'luke_chronos_key') }}"
- name: Add LNW SSH Key
authorized_key: user=root key="{{ lookup('file', 'luke_web_key') }}"
- name: Add RC SSH Key - name: Add RC SSH Key
authorized_key: user=root key="{{ lookup('file', 'romain_key') }}" authorized_key: user=root key="{{ lookup('file', 'romain_key') }}"
...@@ -38,6 +35,12 @@ ...@@ -38,6 +35,12 @@
- name: Add KS SSH Key - name: Add KS SSH Key
authorized_key: user=root key="{{ lookup('file', 'kazuhiko_key') }}" authorized_key: user=root key="{{ lookup('file', 'kazuhiko_key') }}"
- name: Remove old Jerome Perrin SSH Key
authorized_key: user=root key="{{ lookup('file', 'remove_key_9') }}" state=absent
- name: Remove LNW SSH Key
authorized_key: user=root key="{{ lookup('file', 'remove_key_8') }}" state=absent
- name: Remove T SSH Key - name: Remove T SSH Key
authorized_key: user=root key="{{ lookup('file', 'remove_key_7') }}" state=absent authorized_key: user=root key="{{ lookup('file', 'remove_key_7') }}" state=absent
......
...@@ -13,7 +13,7 @@ dependencies: ...@@ -13,7 +13,7 @@ dependencies:
- { role: package, package_name: fuse, package_state: latest } - { role: package, package_name: fuse, package_state: latest }
- { role: package, package_name: exim4-base, package_state: absent } - { role: package, package_name: exim4-base, package_state: absent }
- { role: package, package_name: slapos-node, package_state: latest } - { role: package, package_name: slapos-node, package_state: latest }
- { role: package, package_name: re6st-node, package_state: latest } - { role: package, package_name: re6st-node, package_state: present }
- { role: upgrade-apt, when: is_debian_or_ubuntu } - { role: upgrade-apt, when: is_debian_or_ubuntu }
- { role: re6stnet-ensure-running } - { role: re6stnet-ensure-running }
- { role: etckeeper } - { role: etckeeper }
......
--- ---
upgrade_after: 1561646753 upgrade_after: 1581444230
--- ---
re6st_registry_url: http://re6stnet.nexedi.com/ re6st_registry_url: http://re6stnet.nexedi.com/
re6st_fingerprint: sha256:61a8f3ef4bdf12aca0dad5c17e8fadd15966bdd68b1400c91ef8ee53f17c0d65 re6st_fingerprint: sha256:73e364f2b7ab19335932dfc6514eab518b06a6b5d9b48dea5bcd61cf874becfc
slapos_master_url: https://slap.vifib.com/ slapos_master_url: https://slap.vifib.com/
slapos_web_master_url: https://slapos.vifib.com/ slapos_web_master_url: https://slapos.vifib.com/
interface_name: lo interface_name: lo
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
connection: local connection: local
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.64/software/slapos-master/software.cfg software_release_url: https://lab.nexedi.com/nexedi/slapos/raw/1.0.134/software/slapos-master/software.cfg
bt5_list: erp5_full_text_myisam_catalog slapos_configurator bt5_list: erp5_full_text_myisam_catalog slapos_configurator
startup_playbook_id: slapos-master-standalone.yml startup_playbook_id: slapos-master-standalone.yml
playbook_name: slapos-master playbook_name: slapos-master
......
rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && ~/workspace/slapcache/venv2/bin/slapcache-upload --file=/tmp/archive.tar.gz
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
connection: local connection: local
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.60/software/slaprunner/software.cfg software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.129/software/slaprunner/software.cfg
startup_playbook_id: webrunner-standalone.yml startup_playbook_id: webrunner-standalone.yml
playbook_name: webrunner playbook_name: webrunner
request_instance_template: request-webrunner.j2 request_instance_template: request-webrunner.j2
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
connection: local connection: local
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.112/software/wendelin/software.cfg software_release_url: https://lab.nexedi.com/nexedi/slapos/raw/1.0.134/software/wendelin/software.cfg
bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard erp5_wendelin_configurator bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard erp5_wendelin_configurator
startup_playbook_id: wendelin-standalone.yml startup_playbook_id: wendelin-standalone.yml
request_instance_template: request-erp5.j2 request_instance_template: request-erp5.j2
......
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