Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenSUSE 13.1 #241

Merged
merged 1 commit into from
Jul 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
243 changes: 243 additions & 0 deletions packer/http/opensuse-13.1/autoinst.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
<?xml version="1.0"?>
<!DOCTYPE profile>

<!-- http://doc.opensuse.org/projects/autoyast/configuration.html -->

<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<forceboot config:type="boolean">true</forceboot>
<final_reboot config:type="boolean">false</final_reboot>
</mode>
</general>
<report>
<messages>
<show config:type="boolean">false</show>
<timeout config:type="integer">10</timeout>
<log config:type="boolean">true</log>
</messages>
<warnings>
<show config:type="boolean">false</show>
<timeout config:type="integer">10</timeout>
<log config:type="boolean">true</log>
</warnings>
<errors>
<show config:type="boolean">false</show>
<timeout config:type="integer">10</timeout>
<log config:type="boolean">true</log>
</errors>
</report>

<keyboard>
<keymap>english-us</keymap>
</keyboard>
<language>
<language>en_US</language>
<languages>en_US</languages>
</language>
<timezone>
<hwclock>UTC</hwclock>
<timezone>Etc/UTC</timezone>
</timezone>

<partitioning config:type="list">
<drive>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<crypt_fs config:type="boolean">false</crypt_fs>
<filesystem config:type="symbol">ext4</filesystem>
<filesystem_id config:type="integer">131</filesystem_id>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<loop_fs config:type="boolean">false</loop_fs>
<mount>/boot</mount>
<mountby config:type="symbol">device</mountby>
<partition_id config:type="integer">131</partition_id>
<partition_nr config:type="integer">1</partition_nr>
<resize config:type="boolean">false</resize>
<size>512M</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<crypt_fs config:type="boolean">false</crypt_fs>
<filesystem config:type="symbol">ext4</filesystem>
<filesystem_id config:type="integer">131</filesystem_id>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<loop_fs config:type="boolean">false</loop_fs>
<mount>/</mount>
<mountby config:type="symbol">device</mountby>
<partition_id config:type="integer">131</partition_id>
<partition_nr config:type="integer">2</partition_nr>
<resize config:type="boolean">false</resize>
<size>max</size>
</partition>
<partition>
<create config:type="boolean">true</create>
<crypt_fs config:type="boolean">false</crypt_fs>
<filesystem config:type="symbol">swap</filesystem>
<filesystem_id config:type="integer">130</filesystem_id>
<format config:type="boolean">true</format>
<fstopt>defaults</fstopt>
<loop_fs config:type="boolean">false</loop_fs>
<mount>swap</mount>
<mountby config:type="symbol">device</mountby>
<partition_id config:type="integer">130</partition_id>
<partition_nr config:type="integer">3</partition_nr>
<resize config:type="boolean">false</resize>
<size>512M</size>
</partition>
</partitions>
<type config:type="symbol">CT_DISK</type>
<use>all</use>
</drive>
</partitioning>

<bootloader>
<loader_type>grub2</loader_type>
</bootloader>

<networking>
<ipv6 config:type="boolean">false</ipv6>
<keep_install_network config:type="boolean">true</keep_install_network>
<dns>
<dhcp_hostname config:type="boolean">true</dhcp_hostname>
<dhcp_resolv config:type="boolean">true</dhcp_resolv>
<domain>local</domain>
<hostname>linux</hostname>
</dns>
<interfaces config:type="list">
<interface>
<bootproto>dhcp</bootproto>
<device>enp0s3</device>
<startmode>onboot</startmode>
</interface>
<interface>
<bootproto>dhcp</bootproto>
<device>ens33</device>
<startmode>onboot</startmode>
</interface>
</interfaces>
</networking>

<firewall>
<enable_firewall config:type="boolean">false</enable_firewall>
<start_firewall config:type="boolean">false</start_firewall>
</firewall>

<software>
<image/>
<instsource/>
<packages config:type="list">
<package>grub2</package>
<package>glibc-locale</package>
<package>iputils</package>
<package>kernel-default</package>
<package>kernel-default-devel</package>
<package>gcc</package>
<package>make</package>
<package>less</package>
<package>vim</package>
<package>sudo</package>
<package>screen</package>
<package>yast2</package>
<package>yast2-firstboot</package>
<package>zypper</package>
<package>yast2-trans-en_US</package>
<package>wget</package>
<package>curl</package>
<package>iproute2</package>
<package>ifplugd</package>
<package>kexec-tools</package>
<package>libdaemon0</package>
<package>libnl1</package>
<package>libxslt-tools</package>
<package>cryptsetup-mkinitrd</package>
<package>grub2-branding-openSUSE</package>
<package>rsyslog</package>
</packages>
<patterns config:type="list">
<pattern>sw_management</pattern>
<pattern>yast2_install_wf</pattern>
<pattern>base</pattern>
</patterns>
<remove-packages config:type="list">
<package>virtualbox-guest-kmp-default</package>
<package>virtualbox-guest-tools</package>
</remove-packages>
</software>

<runlevel>
<services config:type="list">
<service>
<service_name>sshd</service_name>
<service_start>3 5</service_start>
</service>
</services>
</runlevel>

<scripts>
<init-scripts config:type="list">
<script>
<debug config:type="boolean">true</debug>
<filename>restart_sshd.sh</filename>
<interpreter>shell</interpreter>
<source><![CDATA[#!/bin/bash
systemctl restart sshd
systemctl enable rsyslog
systemctl start rsyslog
]]></source>
</script>
</init-scripts>
</scripts>

<groups config:type="list">
<group>
<gid>100</gid>
<groupname>users</groupname>
<userlist/>
</group>
</groups>

<user_defaults>
<expire/>
<group>100</group>
<groups/>
<home>/home</home>
<inactive>-1</inactive>
<no_groups config:type="boolean">true</no_groups>
<shell>/bin/bash</shell>
<skel>/etc/skel</skel>
<umask>022</umask>
</user_defaults>

<users config:type="list">
<user>
<user_password>vagrant</user_password>
<username>root</username>
</user>
<user>
<fullname>vagrant</fullname>
<gid>100</gid>
<home>/home/vagrant</home>
<password_settings>
<expire/>
<flag/>
<inact>-1</inact>
<max>99999</max>
<min>0</min>
<warn>7</warn>
</password_settings>
<shell>/bin/bash</shell>
<uid>1000</uid>
<user_password>vagrant</user_password>
<username>vagrant</username>
</user>
</users>
<kdump>
<add_crash_kernel config:type="boolean">false</add_crash_kernel>
</kdump>
</profile>
105 changes: 105 additions & 0 deletions packer/opensuse-13.1-i386.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"builders": [
{
"boot_command": [
"<esc><enter><wait>",
"linux netsetup=dhcp install=cd:/<wait>",
" lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse-13.1/autoinst.xml<wait>",
" textmode=1<wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 20480,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "OpenSUSE",
"http_directory": "http",
"iso_checksum": "1bd6223430910f6d5a168d4e19171462",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/13.1/iso/openSUSE-13.1-DVD-i586.iso",
"output_directory": "packer-opensuse-13.1-i386-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",
"480"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "packer-opensuse-13.1-i386"
},
{
"boot_command": [
"<esc><enter><wait>",
"linux netsetup=dhcp install=cd:/<wait>",
" lang=en_US autoyast=http://{{ .HTTPIP }}:{{ .HTTPPort }}/opensuse-13.1/autoinst.xml<wait>",
" textmode=1<wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 20480,
"guest_os_type": "opensuse",
"http_directory": "http",
"iso_checksum": "1bd6223430910f6d5a168d4e19171462",
"iso_checksum_type": "md5",
"iso_url": "{{user `mirror`}}/13.1/iso/openSUSE-13.1-DVD-i586.iso",
"output_directory": "packer-opensuse-13.1-i386-vmware",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/shutdown -h 1",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vm_name": "packer-opensuse-13.1-i386",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "480",
"numvcpus": "1"
}
}
],
"post-processors": [
{
"output": "../builds/{{.Provider}}/opscode_opensuse-13.1-i386_chef-{{user `chef_version`}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh '{{.Path}}'",
"scripts": [
"scripts/common/sshd.sh",
"scripts/common/vagrant.sh",
"scripts/common/vmtools.sh",
"scripts/common/chef.sh",
"scripts/opensuse/services.sh",
"scripts/opensuse/sudoers.sh",
"scripts/opensuse/zypper-locks.sh",
"scripts/opensuse/remove-dvd-source.sh",
"scripts/opensuse/cleanup.sh",
"scripts/common/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://download.opensuse.org/distribution"
}
}
Loading