Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafael Monnerat
slapos.package
Commits
8f974b4c
Commit
8f974b4c
authored
Oct 31, 2022
by
Thomas Gambier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer: remove obsolete OS
parent
f71fb6e4
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
0 additions
and
624 deletions
+0
-624
packer/centos-6.7-testing-version.json
packer/centos-6.7-testing-version.json
+0
-45
packer/centos-6.7-vm-boostrap.json
packer/centos-6.7-vm-boostrap.json
+0
-46
packer/centos-6.7.json
packer/centos-6.7.json
+0
-48
packer/http/centos67-anaconda-ks.cfg
packer/http/centos67-anaconda-ks.cfg
+0
-42
packer/http/preseed-debian7.cfg
packer/http/preseed-debian7.cfg
+0
-26
packer/http/ubuntu/preseed-16.04.cfg
packer/http/ubuntu/preseed-16.04.cfg
+0
-13
packer/http/ubuntu/preseed.cfg
packer/http/ubuntu/preseed.cfg
+0
-31
packer/ubuntu-14.04-server-amd64-testing-version.json
packer/ubuntu-14.04-server-amd64-testing-version.json
+0
-52
packer/ubuntu-14.04-server-amd64-vm-bootstrap.json
packer/ubuntu-14.04-server-amd64-vm-bootstrap.json
+0
-52
packer/ubuntu-14.04-server-amd64.json
packer/ubuntu-14.04-server-amd64.json
+0
-54
packer/ubuntu-15.04-server-amd64-testing-version.json
packer/ubuntu-15.04-server-amd64-testing-version.json
+0
-52
packer/ubuntu-15.04-server-amd64-vm-bootstrap.json
packer/ubuntu-15.04-server-amd64-vm-bootstrap.json
+0
-52
packer/ubuntu-15.04-server-amd64.json
packer/ubuntu-15.04-server-amd64.json
+0
-54
packer/ubuntu-16.10-server-amd64.json
packer/ubuntu-16.10-server-amd64.json
+0
-57
No files found.
packer/centos-6.7-testing-version.json
deleted
100644 → 0
View file @
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"
}
}
packer/centos-6.7-vm-boostrap.json
deleted
100644 → 0
View file @
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"
:
"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"
}
}
packer/centos-6.7.json
deleted
100644 → 0
View file @
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`}}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"
}
}
packer/http/centos67-anaconda-ks.cfg
deleted
100644 → 0
View file @
f71fb6e4
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
packer/http/preseed-debian7.cfg
deleted
100644 → 0
View file @
f71fb6e4
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
packer/http/ubuntu/preseed-16.04.cfg
deleted
100644 → 0
View file @
f71fb6e4
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
packer/http/ubuntu/preseed.cfg
deleted
100644 → 0
View file @
f71fb6e4
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
packer/ubuntu-14.04-server-amd64-testing-version.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-14.04-server-amd64-vm-bootstrap.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-14.04-server-amd64.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-15.04-server-amd64-testing-version.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-15.04-server-amd64-vm-bootstrap.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-15.04-server-amd64.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
packer/ubuntu-16.10-server-amd64.json
deleted
100644 → 0
View file @
f71fb6e4
{
"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"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment