Skip to content

Commit

Permalink
Add LTSS addon into HPC autoyast profile
Browse files Browse the repository at this point in the history
  • Loading branch information
dzedro committed Nov 1, 2022
1 parent fa210bb commit a9aba07
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions data/autoyast_sle15/hpc/create_hdd_textmode_aarch64.xml.ep
Expand Up @@ -74,6 +74,15 @@
<version>15</version>
</addon>
% }
% if ($get_var->('SCC_ADDONS') =~ m/ltss/) {
<addon config:type="map">
<arch>{{ARCH}}</arch>
<name>SLE_HPC-LTSS</name>
<reg_code>{{SCC_REGCODE_LTSS}}</reg_code>
<release_type>nil</release_type>
<version>{{VERSION}}</version>
</addon>
% }
</addons>
<do_registration config:type="boolean">true</do_registration>
% if ($check_var->('FLAVOR', 'Server-DVD-HPC-Incidents')) {
Expand Down
9 changes: 9 additions & 0 deletions data/autoyast_sle15/hpc/create_hdd_textmode_x86_64.xml.ep
Expand Up @@ -74,6 +74,15 @@
<version>15</version>
</addon>
% }
% if ($get_var->('SCC_ADDONS') =~ m/ltss/) {
<addon config:type="map">
<arch>{{ARCH}}</arch>
<name>SLE_HPC-LTSS</name>
<reg_code>{{SCC_REGCODE_LTSS}}</reg_code>
<release_type>nil</release_type>
<version>{{VERSION}}</version>
</addon>
% }
</addons>
<do_registration config:type="boolean">true</do_registration>
% if ($check_var->('FLAVOR', 'Server-DVD-HPC-Incidents')) {
Expand Down
2 changes: 1 addition & 1 deletion lib/autoyast.pm
Expand Up @@ -669,7 +669,7 @@ sub expand_variables {
my ($profile) = @_;
# Expand other variables
my @vars = qw(SCC_REGCODE SCC_REGCODE_HA SCC_REGCODE_GEO SCC_REGCODE_HPC
SCC_REGCODE_WE SCC_URL ARCH LOADER_TYPE NTP_SERVER_ADDRESS
SCC_REGCODE_LTSS SCC_REGCODE_WE SCC_URL ARCH LOADER_TYPE NTP_SERVER_ADDRESS
REPO_SLE_MODULE_DEVELOPMENT_TOOLS);
# Push more variables to expand from the job setting
my @extra_vars = push @vars, split(/,/, get_var('AY_EXPAND_VARS', ''));
Expand Down

0 comments on commit a9aba07

Please sign in to comment.