From e4fc4250a48cae20f4be6389159df7fea90295e8 Mon Sep 17 00:00:00 2001 From: Mattias Giese Date: Fri, 2 Dec 2016 18:59:24 +0100 Subject: [PATCH] Initial support for SLES 12 SP2 Signed-off-by: Mattias Giese --- http/sles-12/sles-12-sp2-x86_64-autoinst.xml | 280 +++++++++++++++++++ sles-12-sp2-x86_64.json | 201 +++++++++++++ 2 files changed, 481 insertions(+) create mode 100644 http/sles-12/sles-12-sp2-x86_64-autoinst.xml create mode 100644 sles-12-sp2-x86_64.json diff --git a/http/sles-12/sles-12-sp2-x86_64-autoinst.xml b/http/sles-12/sles-12-sp2-x86_64-autoinst.xml new file mode 100644 index 000000000..e3df36036 --- /dev/null +++ b/http/sles-12/sles-12-sp2-x86_64-autoinst.xml @@ -0,0 +1,280 @@ + + + + + + + + + true + splash=silent quiet showopts + showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe + false + false + false + true + 0 + SLES12 + true + auto + false + 8 + + + + ahci + + + ata_piix + + + ata_generic + + + jbd + + + mbcache + + + grub2 + + + + false + + + false + false + + + + + false + + + none + + + + true + true + true + true + false + true + + + + + + + + AUTO + + + false + vagrantup.com + vagrant-sles-12-x64 + auto + + vagrantup.com + + true + + + + dhcp + eth0 + yes + auto + no + + + true + false + + false + false + + + + + + + + true + + + true + false + swap + true + defaults + false + swap + device + 130 + 1 + + false + 1561492992 + + + true + false + btrfs + true + false + / + device + 131 + 2 + + false + 19895844352 + + boot/grub2/i386-pc + boot/grub2/x86_64-efi + home + opt + srv + tmp + usr/local + var/crash + var/lib/mailman + var/lib/named + var/lib/pgsql + var/log + var/opt + var/spool + var/tmp + + + + + CT_DISK + all + + + + + true + true + 0 + + + true + true + 0 + + + true + true + 0 + + + true + true + 0 + + + + graphical + + + + sshd + + + + + + glibc + openssh + snapper + SuSEfirewall2 + kexec-tools + perl-Bootloader-YAML + kernel-default-devel + sudo + gcc + wget + perl + make + + + Minimal + apparmor + + + adaptec-firmware + atmel-firmware + bash-completion + bash-doc + cifs-utils + cups-libs + ipw-firmware + mpt-firmware + postfix + samba-libs + ucode-intel + + + + UTC + UTC + + + + 100 + video,dialout + /home + -1 + /bin/bash + /etc/skel + 022 + + + + true + vagrant + 100 + /home/vagrant + + + + + 99999 + 0 + 7 + + /bin/bash + 1000 + $2y$05$NA1Li9ZKJOLRW5mMTXm6/e5r8dltWS5RpDZpvHrI82aLE00V51tdi + vagrant + + + true + root + 0 + /root + + + + + + + + + /bin/bash + 0 + $6$UgKtUD0AUMIA$VWLyc2Uvl0Lk6xxfTuoRb0/jrhZ9IJG/Gtx/DkZUEWZm.JYO1Q1fvPo6gDxQAHp38kQ1DG1vNGRgu2T/z/vih. + root + + + diff --git a/sles-12-sp2-x86_64.json b/sles-12-sp2-x86_64.json new file mode 100644 index 000000000..57dea6c50 --- /dev/null +++ b/sles-12-sp2-x86_64.json @@ -0,0 +1,201 @@ +{ + "builders": [ + { + "boot_command": [ + "", + "linux netdevice=eth0 netsetup=dhcp install=cd:/", + " lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `autoinst_cfg`}}", + " textmode=1", + "" + ], + "boot_wait": "10s", + "disk_size": "{{user `disk_size`}}", + "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso", + "guest_os_type": "OpenSUSE_64", + "hard_drive_interface": "sata", + "headless": "{{ user `headless` }}", + "http_directory": "http", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-virtualbox", + "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "vagrant", + "ssh_wait_timeout": "10000s", + "type": "virtualbox-iso", + "vboxmanage": [ + [ + "modifyvm", + "{{.Name}}", + "--memory", + "{{ user `memory` }}" + ], + [ + "modifyvm", + "{{.Name}}", + "--cpus", + "{{ user `cpus` }}" + ] + ], + "virtualbox_version_file": ".vbox_version", + "vm_name": "{{ user `template` }}" + }, + { + "boot_command": [ + "", + "linux netdevice=eth0 netsetup=dhcp install=cd:/", + " lang=en_US-8 autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `autoinst_cfg`}}", + " textmode=1", + "" + ], + "boot_wait": "10s", + "disk_size": "{{user `disk_size`}}", + "guest_os_type": "sles11-64", + "headless": "{{ user `headless` }}", + "http_directory": "http", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-vmware", + "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "vagrant", + "ssh_wait_timeout": "10000s", + "tools_upload_flavor": "linux", + "type": "vmware-iso", + "vm_name": "{{ user `template` }}", + "vmx_data": { + "cpuid.coresPerSocket": "1", + "memsize": "{{ user `memory` }}", + "numvcpus": "{{ user `cpus` }}" + } + }, + { + "boot_command": [ + "", + "linux netdevice=eth0 netsetup=dhcp install=cd:/", + " lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `autoinst_cfg`}}", + " textmode=1", + "" + ], + "boot_wait": "10s", + "disk_size": "{{user `disk_size`}}", + "guest_os_type": "suse", + "http_directory": "http", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-parallels", + "parallels_tools_flavor": "lin", + "prlctl": [ + [ + "set", + "{{.Name}}", + "--memsize", + "{{ user `memory` }}" + ], + [ + "set", + "{{.Name}}", + "--cpus", + "{{ user `cpus` }}" + ] + ], + "prlctl_version_file": ".prlctl_version", + "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "vagrant", + "ssh_wait_timeout": "10000s", + "type": "parallels-iso", + "vm_name": "{{ user `template` }}" + }, + { + "boot_command": [ + "", + "linux netdevice=eth0 netsetup=dhcp install=cd:/", + " lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `autoinst_cfg`}}", + " textmode=1", + "" + ], + "boot_wait": "10s", + "disk_size": "{{user `disk_size`}}", + "headless": "{{ user `headless` }}", + "http_directory": "http", + "iso_checksum": "{{user `iso_checksum`}}", + "iso_checksum_type": "{{user `iso_checksum_type`}}", + "iso_url": "{{user `mirror`}}/{{user `iso_name`}}", + "output_directory": "packer-{{user `template`}}-qemu", + "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p", + "ssh_password": "vagrant", + "ssh_port": 22, + "ssh_username": "vagrant", + "ssh_wait_timeout": "10000s", + "type": "qemu", + "vm_name": "{{ user `template` }}" + } + ], + "post-processors": [ + { + "output": "builds/{{user `box_basename`}}.{{.Provider}}.box", + "type": "vagrant" + } + ], + "provisioners": [ + { + "destination": "/tmp/bento-metadata.json", + "source": "{{user `metadata`}}", + "type": "file" + }, + { + "environment_vars": [ + "HOME_DIR=/home/vagrant", + "http_proxy={{user `http_proxy`}}", + "https_proxy={{user `https_proxy`}}", + "no_proxy={{user `no_proxy`}}" + ], + "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh '{{.Path}}'", + "scripts": [ + "scripts/common/metadata.sh", + "scripts/common/sshd.sh", + "scripts/common/vagrant.sh", + "scripts/sles/unsupported-modules.sh", + "scripts/common/virtualbox.sh", + "scripts/common/vmware.sh", + "scripts/common/parallels.sh", + "scripts/sles/sudoers.sh", + "scripts/sles/zypper-locks.sh", + "scripts/sles/remove-dvd-source.sh", + "scripts/sles/cleanup.sh", + "scripts/common/minimize.sh" + ], + "type": "shell" + } + ], + "variables": { + "_DOWNLOAD_SITE": "https://www.suse.com/products/server/download", + "_README": "You must download the automated installer iso from the following page, and then place it in the packer_cache dir", + "arch": "64", + "autoinst_cfg": "sles-12/sles-12-sp2-x86_64-autoinst.xml", + "box_basename": "sles-12-sp2", + "build_timestamp": "{{isotime \"20060102150405\"}}", + "cpus": "1", + "disk_size": "20480", + "git_revision": "__unknown_git_revision__", + "headless": "", + "http_proxy": "{{env `http_proxy`}}", + "https_proxy": "{{env `https_proxy`}}", + "iso_checksum": "dd724e9248f2c3507e8e9d0050a4c8b6e9aeda7fdf0870858757cc6c01b7d47d", + "iso_checksum_type": "sha256", + "iso_name": "SLE-12-SP2-Server-DVD-x86_64-GM-DVD1.iso", + "memory": "1024", + "metadata": "floppy/dummy_metadata.json", + "mirror": "./packer_cache", + "name": "sles-12-sp2", + "template": "sles-12-sp2-x86_64", + "version": "2.2.TIMESTAMP" + } +}