Skip to content

Commit

Permalink
Add automatic installation recipe autoyast profile
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Jun 10, 2021
1 parent fda2881 commit 59bd4a6
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
56 changes: 56 additions & 0 deletions contrib/ay-openqa-worker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?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>
14 changes: 14 additions & 0 deletions docs/Installing.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,20 @@ the workers create their own instance directories.
* When enabling the worker cache parts of the usual "share directory" are located in the specified cache
directory on the worker host.

== Automatic installation of the operating systems for openQA machines
[id="auto_installation_machines"]

As a maintainer of an openQA infrastructure running multiple openQA worker
machines one likely wants to use installation recipes for automatic
installations to provide a consistent and easy setup of new machines.

For this https://doc.opensuse.org/projects/autoyast/[AutoYaST] can be used. An
example template that provides the bare basics of installing a machine with
SSH and salt, e.g. to be used with
https://github.com/os-autoinst/salt-states-openqa/, can be found in
https://github.com/os-autoinst/openQA/blob/master/contrib/ay-openqa-worker.xml


== Troubleshooting
[id="troubleshooting"]

Expand Down

0 comments on commit 59bd4a6

Please sign in to comment.