Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Mon, Nov 25, 7:23 PM
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..361650a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.build
+packer_cache
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e69de29
diff --git a/http/debian-8-jessie-preseed.cfg b/http/debian-8-jessie-preseed.cfg
new file mode 100644
index 0000000..b772811
--- /dev/null
+++ b/http/debian-8-jessie-preseed.cfg
@@ -0,0 +1,79 @@
+### Localization
+d-i debian-installer/locale string en_US
+d-i debian-installer/language string en
+d-i debian-installer/country string US
+d-i debian-installer/locale string en_US.UTF-8
+d-i localechooser/supported-locales multiselect en_US.UTF-8
+
+# Keyboard selection.
+d-i console-tools/archs select at
+d-i console-keymaps-at/keymap select us
+
+d-i keyboard-configuration/xkb-keymap select us
+
+### Network configuration
+d-i netcfg/choose_interface select auto
+
+### Mirror settings
+d-i mirror/country string manual
+d-i mirror/http/hostname string httpredir.debian.org
+d-i mirror/http/directory string /debian
+d-i mirror/http/proxy string
+
+### Account setup
+# Create root account
+d-i passwd/root-login boolean true
+d-i passwd/root-password password root
+d-i passwd/root-password-again password root
+# Skip creating normal user
+d-i passwd/make-user boolean false
+
+### Clock and time zone setup
+d-i clock-setup/utc boolean true
+d-i time/zone string GMT+0
+d-i clock-setup/ntp boolean true
+
+### Partitioning
+d-i partman-auto/method string regular
+# Do not create a swap partition.
+# Create a single partition having at least 1000 MB and the maximum possible (-1),
+# with a priority of 50, and using ext4.
+d-i partman-auto/expert_recipe string singlepart :: 1000 50 -1 ext4 \
+ $primary{ } $bootable{ } \
+ method{ format } format{ } \
+ use_filesystem{ } filesystem{ ext4 } \
+ mountpoint{ / } \
+ .
+d-i partman-auto/choose_recipe select singlepart
+# Disables partman warning message for not having a swap partition.
+d-i partman-basicfilesystems/no_swap boolean false
+d-i partman-partitioning/confirm_write_new_label boolean true
+d-i partman/choose_partition select finish
+d-i partman/confirm boolean true
+d-i partman/confirm_nooverwrite boolean true
+d-i partman/mount_style select uuid
+
+### Apt setup
+d-i apt-setup/non-free boolean false
+d-i apt-setup/contrib boolean false
+d-i apt-setup/services-select multiselect security
+d-i apt-setup/security_host string security.debian.org
+
+### Package selection
+tasksel tasksel/first multiselect ssh-server
+
+d-i pkgsel/upgrade select safe-upgrade
+
+popularity-contest popularity-contest/participate boolean false
+
+### GRUB
+d-i grub-installer/only_debian boolean true
+d-i grub-installer/bootdev string default
+
+### Finishing up the installation
+d-i finish-install/keep-consoles boolean true
+d-i finish-install/reboot_in_progress note
+
+# Permit root login
+d-i preseed/late_command string \
+in-target sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
diff --git a/jessie.json b/jessie.json
new file mode 100644
index 0000000..1208023
--- /dev/null
+++ b/jessie.json
@@ -0,0 +1,53 @@
+{
+ "description": "Vanilla Debian Jessie base box",
+ "variables": {
+ "box_version": "8.8.0",
+ "box_changelog": "* stable point release\n"
+ },
+ "builders": [
+ {
+ "boot_command": [
+ "<esc><wait>",
+ "install <wait>",
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/debian-8-jessie-preseed.cfg <wait>",
+ "debian-installer=en_US <wait>",
+ "auto <wait>",
+ "locale=en_US <wait>",
+ "kbd-chooser/method=us <wait>",
+ "netcfg/get_hostname={{ .Name }} <wait>",
+ "netcfg/get_domain=grnet.gr <wait>",
+ "fb=false <wait>",
+ "debconf/frontend=noninteractive <wait>",
+ "console-setup/ask_detect=false <wait>",
+ "console-keymaps-at/keymap=us <wait>",
+ "keyboard-configuration/xkb-keymap=us <wait>",
+ "<enter><wait>"
+ ],
+ "disk_size": "1050",
+ "disk_interface": "virtio",
+ "headless": true,
+ "http_directory": "http",
+ "iso_checksum": "2c07ff8cc766767610566297b8729740f923735e790c8e78b718fb93923b448e",
+ "iso_checksum_type": "sha256",
+ "iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.8.0-amd64-netinst.iso",
+ "shutdown_command": "/sbin/halt -p",
+ "ssh_password": "root",
+ "ssh_username": "root",
+ "ssh_port": "22",
+ "ssh_wait_timeout": "100000s",
+ "type": "qemu",
+ "qemuargs": [[ "-m", "2048" ],[ "-smp", "2" ]],
+ "accelerator": "kvm",
+ "vm_name": "debian-jessie-{{user `box_version`}}.img",
+ "output_directory": "jessie.build",
+ "format": "raw"
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "pause_before": "5s",
+ "inline": ["sed -i 's/PermitRootLogin.*/PermitRootLogin without-password/g' /etc/ssh/sshd_config"]
+ }
+ ]
+}

Event Timeline