Skip to content

Instantly share code, notes, and snippets.

@okurz
Created November 25, 2020 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okurz/8386e794563552eb886276cce99db3c7 to your computer and use it in GitHub Desktop.
Save okurz/8386e794563552eb886276cce99db3c7 to your computer and use it in GitHub Desktop.
openQA autoyast installation recipe providing ssh+salt-minion to apply all the rest later
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<networking>
<keep_install_network config:type="boolean">true</keep_install_network>
</networking>
<software>
<products config:type="list">
<product>openSUSE</product>
</products>
<packages config:type="list">
<package>openssh</package>
<package>sudo</package>
<package>salt-minion</package>
</packages>
</software>
<partitioning config:type="list">
<drive>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
<mount>/</mount>
<size>max</size>
<filesystem config:type="symbol">btrfs</filesystem>
</partition>
<partition>
<mount>swap</mount>
<size>auto</size>
</partition>
</partitions>
</drive>
</partitioning>
<scripts>
<post-scripts config:type="list">
<script>
<filename>setup.sh</filename>
<interpreter>shell</interpreter>
<debug config:type="boolean">true</debug>
<source><![CDATA[
zypper in salt-minion
echo 'roles: worker' > /etc/salt/grains
systemctl enable --now sshd salt-minion
]]></source>
</script>
</post-scripts>
</scripts>
<firewall>
<enable_firewall config:type="boolean">true</enable_firewall>
<start_firewall config:type="boolean">true</start_firewall>
<FW_CONFIGURATIONS_EXT>sshd</FW_CONFIGURATIONS_EXT>
</firewall>
<timezone>
<hwclock>UTC</hwclock>
<timezone>Europe/Berlin</timezone>
</timezone>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment