Commit 8f974b4c authored by Thomas Gambier's avatar Thomas Gambier

packer: remove obsolete OS

parent f71fb6e4
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc>",
"<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "sha256:9d3fec5897be6b3fed4d3dda80b8fa7bb62c616bbfd4bdcd27295ca9b764f498",
"iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-minimal.iso",
"name": "centos67-testing-version",
"shutdown_command": "sudo poweroff",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-centos.sh",
"scripts/packages-centos.sh",
"scripts/setup-testing-version.sh",
"scripts/cleanup-centos.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "100000",
"domain": "",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc>",
"<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:0ca12fe5f28c2ceed4f4084b41ff8a0b",
"iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
"name": "centos68-vm-bootstrap",
"shutdown_command": "sudo poweroff",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-centos.sh",
"scripts/packages-centos.sh",
"scripts/cleanup-centos.sh",
"scripts/centos6-install-base.sh",
"scripts/vm-bootstrap.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "200000",
"domain": "",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc>",
"<wait>",
"linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/centos67-anaconda-ks.cfg",
"<enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}000",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:0ca12fe5f28c2ceed4f4084b41ff8a0b",
"iso_url": "http://mirrors.kernel.org/centos/6.8/isos/x86_64/CentOS-6.8-x86_64-minimal.iso",
"name": "centos-6-{{ user `disk_size`}}G-{{ user `name`}}",
"shutdown_command": "sudo poweroff",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-centos.sh",
"scripts/packages-centos.sh",
"scripts/cleanup-centos.sh",
"scripts/centos6-install-base.sh",
"{{ user `custom_script` }}"
],
"type": "shell"
}
],
"variables": {
"custom_script": "scripts/empty.sh",
"disk_size": "100",
"domain": "",
"name": "image",
"password": "slapos",
"user": "slapos"
}
}
install
text
reboot
cdrom
lang en_US.UTF-8
keyboard fr
timezone --utc Etc/UTC
rootpw --plaintext slapos
user --name=slapos --groups=slapos --password=slapos --plaintext
zerombr
clearpart --all
autopart
bootloader --timeout=1
%packages --nobase
@core
-b43-openfwwf
-device-mapper-multipath
-efibootmgr
-iscsi-initiator-utils
-lvm2
-mdadm
%end
%post --erroronfail
yum -y update
cat <<EOF > /etc/sudoers.d/slapos
Defaults:slapos !requiretty
slapos ALL=(ALL) NOPASSWD: ALL
EOF
chmod 440 /etc/sudoers.d/slapos
rm /etc/udev/rules.d/70-persistent-net.rules
ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF
DEVICE="eth0"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Ethernet"
EOF
%end
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select fr
d-i clock-setup/ntp boolean true
d-i clock-setup/utc boolean true
d-i finish-install/reboot_in_progress note
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i mirror/country string manual
d-i mirror/http/directory string /debian
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/proxy string
d-i netcfg/choose_interface select auto
d-i netcfg/wireless_wep 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/root-login boolean false
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select full-upgrade
d-i time/zone string CET
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard
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
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:2ac1f3e0de626e54d05065d6f549fa3a",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"name": "ubuntu-14-04-server-testing-version",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/setup-testing-version.sh",
"scripts/network-ubuntu.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "100000",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:2ac1f3e0de626e54d05065d6f549fa3a",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"name": "ubuntu-14-04-server-vm-bootstrap",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh",
"scripts/vm-bootstrap.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "100000",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=pc101 ",
"keyboard-configuration/layoutcode=fr ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}000",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:2ac1f3e0de626e54d05065d6f549fa3a",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
"name": "ubuntu-14-server-{{ user `disk_size`}}G-{{ user `name`}}",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh",
"{{ user `custom_script` }}"
],
"type": "shell"
}
],
"variables": {
"custom_script": "scripts/empty.sh",
"disk_size": "100",
"domain": "",
"name": "image",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:487f4a81f22f8597503db3d51a1b502e",
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"name": "ubuntu-15-04-server-testing-version",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/setup-testing-version.sh",
"scripts/network-ubuntu.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "100000",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=SKIP ",
"keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:487f4a81f22f8597503db3d51a1b502e",
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"name": "ubuntu-15-04-server-vm-bootstrap",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh",
"scripts/vm-bootstrap.sh"
],
"type": "shell"
}
],
"variables": {
"disk_size": "100000",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed-ubuntu.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=fr ",
"hostname={{ .Name }} ",
"keyboard-configuration/modelcode=pc101 ",
"keyboard-configuration/layoutcode=fr ",
"passwd/user-fullname={{user `user`}} ",
"passwd/user-password-again={{user `password`}} ",
"passwd/user-password={{user `password`}} ",
"passwd/username={{user `user`}} ",
"initrd=/install/initrd.gz -- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}000",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:487f4a81f22f8597503db3d51a1b502e",
"iso_url": "http://releases.ubuntu.com/15.04/ubuntu-15.04-server-amd64.iso",
"name": "ubuntu-15-server-{{ user `disk_size`}}G-{{ user `name`}}",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/update-ubuntu.sh",
"scripts/packages-ubuntu.sh",
"scripts/network-ubuntu.sh",
"{{ user `custom_script` }}"
],
"type": "shell"
}
],
"variables": {
"custom_script": "scripts/empty.sh",
"disk_size": "100",
"domain": "",
"name": "image",
"password": "slapos",
"user": "slapos"
}
}
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"<esc><esc><enter><wait>",
"/install/vmlinuz ",
"initrd=/install/initrd.gz ",
"hostname={{ .Name }} ",
"net.ifnames=0 ",
"auto-install/enable=true ",
"debconf/priority=critical ",
"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-ubuntu16.04.cfg ",
"-- <enter>"
],
"boot_wait": "2s",
"disk_size": "{{ user `disk_size`}}000",
"format": "qcow2",
"headless": true,
"http_directory": "http",
"iso_checksum": "md5:7d6de832aee348bacc894f0a2ab1170d",
"iso_url": "http://releases.ubuntu.com/16.10/ubuntu-16.10-server-amd64.iso",
"name": "ubuntu-16-server-{{ user `disk_size`}}G-{{ user `name`}}",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"ssh_password": "{{user `password`}}",
"ssh_timeout": "1800s",
"ssh_username": "{{user `user`}}",
"type": "qemu"
}
],
"provisioners": [
{
"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` }}"
],
"type": "shell"
}
],
"variables": {
"custom_script": "scripts/empty.sh",
"disk_size": "100",
"domain": "",
"name": "image",
"password": "slapos",
"user": "slapos"
}
}
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