Skip to content

Commit

Permalink
Adjust lvm and tftp profiles for SLE15
Browse files Browse the repository at this point in the history
Adjustments include following changes:
* adjusted ntp client
* registration section
* adjusted software patterns and defined product

We also have introduced some variables. REG_CODE variable should contain
registration code for the product, and cannot be stored in git.
REG_SERVER should contain url of the registration server, which has
build number in the url, so has to be replaced dynamically.
For example: http://all-400.4.proxy.scc.suse.de
  • Loading branch information
Rodion Iafarov committed Jan 10, 2018
1 parent f14360e commit 9aa16b0
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 80 deletions.
3 changes: 3 additions & 0 deletions aytests/lvm.vars
@@ -0,0 +1,3 @@
MSG_TIMEOUT=5
VERSION=15
ARCH=x86_64
34 changes: 29 additions & 5 deletions aytests/lvm.xml
Expand Up @@ -15,6 +15,26 @@
<accept_non_trusted_gpg_key config:type="boolean">true</accept_non_trusted_gpg_key>
</signature-handling>
</general>
<suse_register>
<do_registration config:type="boolean">true</do_registration>
<email>
</email>
<reg_code>{{SCC_REGCODE}}</reg_code>
<install_updates config:type="boolean">true</install_updates>
<reg_server>{{SCC_URL}}</reg_server>
<addons config:type="list">
<addon>
<name>sle-module-basesystem</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
<addon>
<name>sle-module-server-applications</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
</addons>
</suse_register>
<scripts>
<post-scripts config:type="list">
<script>
Expand Down Expand Up @@ -64,22 +84,22 @@ mv /var/run/zypp.sav /var/run/zypp.pid
<errors>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</errors>
<messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</messages>
<warnings>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</warnings>
<yesno_messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</yesno_messages>
</report>

Expand Down Expand Up @@ -130,8 +150,9 @@ mv /var/run/zypp.sav /var/run/zypp.pid

<software>
<patterns config:type="list">
<pattern>Minimal</pattern>
<pattern>base</pattern>
<pattern>basesystem</pattern>
<pattern>minimal_base</pattern>
</patterns>
<packages config:type="list">
<package>sudo</package>
Expand All @@ -143,6 +164,9 @@ mv /var/run/zypp.sav /var/run/zypp.pid
<remove-packages config:type="list">
<package>zsh</package>
</remove-packages>
<products config:type="list">
<product>SLES15</product>
</products>
</software>

<users config:type="list">
Expand Down
5 changes: 4 additions & 1 deletion aytests/tftp.vars
@@ -1 +1,4 @@
POST_SCRIPT_URL=http://{{IP}}:{{PORT}}/static/scripts/post_script.sh
POST_SCRIPT_URL=http://{{IP}}:{{PORT}}/static/scripts/post_script.sh
MSG_TIMEOUT=5
VERSION=15
ARCH=x86_64
103 changes: 29 additions & 74 deletions aytests/tftp.xml
Expand Up @@ -22,6 +22,26 @@
</accept_unknown_gpg_key>
</signature-handling>
</general>
<suse_register>
<do_registration config:type="boolean">true</do_registration>
<email>
</email>
<reg_code>{{SCC_REGCODE}}</reg_code>
<install_updates config:type="boolean">true</install_updates>
<reg_server>{{SCC_URL}}</reg_server>
<addons config:type="list">
<addon>
<name>sle-module-basesystem</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
<addon>
<name>sle-module-server-applications</name>
<version>{{VERSION}}</version>
<arch>{{ARCH}}</arch>
</addon>
</addons>
</suse_register>
<scripts>
<init-scripts config:type="list">
<script>
Expand Down Expand Up @@ -97,36 +117,38 @@ chmod 755 /srv/tftpboot
<errors>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<!-- Error popup of not supported YaST modules must disapper
after 10 seconds in order not stopping the installation. Bug 925381 -->
<timeout config:type="integer">10</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</errors>
<messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</messages>
<warnings>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</warnings>
<yesno_messages>
<log config:type="boolean">true</log>
<show config:type="boolean">true</show>
<timeout config:type="integer">5</timeout>
<timeout config:type="integer">{{MSG_TIMEOUT}}</timeout>
</yesno_messages>
</report>

<software>
<patterns config:type="list">
<pattern>Minimal</pattern>
<pattern>base</pattern>
<pattern>basesystem</pattern>
<pattern>minimal_base</pattern>
</patterns>
<packages config:type="list">
<package>xinetd</package>
<package>tftp</package>
</packages>
<products config:type="list">
<product>SLES15</product>
</products>
</software>

<tftp-server>
Expand Down Expand Up @@ -164,73 +186,6 @@ chmod 755 /srv/tftpboot

<ntp-client>
<ntp_policy>auto</ntp_policy>
<peers config:type="list">
<peer>
<address>/var/lib/ntp/drift/ntp.drift</address>
<comment>
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust

##
## Miscellaneous stuff
##

</comment>
<type>driftfile</type>
</peer>
<peer>
<address>/var/log/ntp</address>
<comment># path for drift file

</comment>
<type>logfile</type>
</peer>
<peer>
<address>/etc/ntp.keys</address>
<comment># alternate log file
# logconfig =syncstatus + sysevents
# logconfig =all

# statsdir /tmp/ # directory for statistics files
# filegen peerstats file peerstats type day enable
# filegen loopstats file loopstats type day enable
# filegen clockstats file clockstats type day enable

#
# Authentication stuff
#
</comment>
<type>keys</type>
</peer>
<peer>
<address>1</address>
<comment># path for keys file
</comment>
<type>trustedkey</type>
</peer>
<peer>
<address>1</address>
<comment># define trusted keys
</comment>
<type>requestkey</type>
</peer>
<peer>
<address>1</address>
<comment># key (7) for accessing server variables
</comment>
<type>controlkey</type>
</peer>
<peer>
<address>ntp.suse.de</address>
<options> iburst</options>
<type>server</type>
</peer>
</peers>
<start_at_boot config:type="boolean">true</start_at_boot>
<start_in_chroot config:type="boolean">false</start_in_chroot>
<sync_interval config:type="integer">5</sync_interval>
<synchronize_time config:type="boolean">false</synchronize_time>
</ntp-client>

</profile>

0 comments on commit 9aa16b0

Please sign in to comment.