From e884d4458f8f51e4c1a785e6bc077a14f886cbda Mon Sep 17 00:00:00 2001 From: Ove Gram Nipen Date: Mon, 1 Aug 2016 15:56:59 +0200 Subject: [PATCH] Add script for sles-12-sp1 --- http/sles-12/sles-12-sp1-x86_64-autoinst.xml | 325 +++++++++++++++++++ sles-12-sp1-x86_64.json | 197 +++++++++++ 2 files changed, 522 insertions(+) create mode 100644 http/sles-12/sles-12-sp1-x86_64-autoinst.xml create mode 100644 sles-12-sp1-x86_64.json diff --git a/http/sles-12/sles-12-sp1-x86_64-autoinst.xml b/http/sles-12/sles-12-sp1-x86_64-autoinst.xml new file mode 100644 index 000000000..00294916e --- /dev/null +++ b/http/sles-12/sles-12-sp1-x86_64-autoinst.xml @@ -0,0 +1,325 @@ + + + + + + + + + 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 + + + no + no + no + + + + + + + + + no + yes + no + no + + no + yes + no + yes + no + no + no + + + + + + + + + + + + + + + + + + + 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 + grub2 + syslinux + snapper + sles-release + SuSEfirewall2 + kexec-tools + perl-Bootloader-YAML + kernel-default-devel + sudo + gcc + wget + perl + make + + + Minimal + apparmor + + + adaptec-firmware + atmel-firmware + augeas-lenses + 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-sp1-x86_64.json b/sles-12-sp1-x86_64.json new file mode 100644 index 000000000..f024ba321 --- /dev/null +++ b/sles-12-sp1-x86_64.json @@ -0,0 +1,197 @@ +{ + "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 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/vmtools.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": { + "arch": "64", + "autoinst_cfg": "sles-12/sles-12-sp1-x86_64-autoinst.xml", + "box_basename": "sles-12-sp1", + "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": "e1c0ba860f593d60c2c138a0cd35e2a3c65304b4c988b4c9f6051bff89871f62", + "iso_checksum_type": "sha256", + "iso_name": "SLE-12-SP1-Server-DVD-x86_64-GM-DVD1.iso", + "memory": "1024", + "metadata": "floppy/dummy_metadata.json", + "mirror": "http://cdn.novell.com/prot/oq2T_Vmjsms~", + "name": "sles-12-sp1", + "template": "sles-12-sp1-x86_64", + "version": "2.2.TIMESTAMP" + } +}