File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 needs : Spec
1616 uses : " puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
1717 with :
18- flags : " --nightly"
18+ flags : " --nightly --arch-exclude arm "
1919 secrets : " inherit"
Original file line number Diff line number Diff line change 1414 needs : Spec
1515 uses : " puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
1616 with :
17- flags : " --nightly"
17+ flags : " --nightly --arch-exclude arm "
1818 secrets : " inherit"
Original file line number Diff line number Diff line change 110110 default => ' --jre'
111111 }
112112
113- # If the OS is SLES >= 15.3, enable the legacy repo to install net-tools-deprecated package
114- if ($facts [' os' ][' family' ] in [' SLES' , ' SUSE' ]) and (versioncmp($facts [' os' ][' release' ][' full' ], ' 15.3' ) >= 0) {
115- exec { 'Enable legacy repos' :
116- path => ' /bin:/usr/bin/:/sbin:/usr/sbin' ,
117- command => " SUSEConnect --product sle-module-legacy/${facts['os']['release']['full']}/x86_64" ,
118- unless => " SUSEConnect --status-text | grep sle-module-legacy/${facts['os']['release']['full']}/x86_64" ,
113+ # TEMPORARY FIX: If no repos are configured on SLES, add openSUSE Leap as fallback
114+ # This workaround is needed because GCP-provisioned SLES images are unregistered BYOS
115+ # without any package repositories configured. Remove this once proper PAYG images are used.
116+ if ($facts [' os' ][' family' ] in [' SLES' , ' SUSE' ]) {
117+ exec { 'Configure zypper repo for SLES' :
118+ path => ' /bin:/usr/bin:/sbin:/usr/sbin' ,
119+ command => ' zypper --non-interactive --gpg-auto-import-keys ar http://download.opensuse.org/distribution/leap/15.6/repo/oss/ opensuse-leap-fallback && zypper --non-interactive --gpg-auto-import-keys refresh' ,
120+ unless => " zypper lr 2>/dev/null | grep -q 'opensuse-leap-fallback\\ |http'" ,
121+ logoutput => true ,
119122 }
123+ -> Package[' java' ]
120124 }
121125
122126 if $facts [' os' ][' family' ] == ' Debian' {
You can’t perform that action at this time.
0 commit comments