File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110 default => ' --jre'
111111 }
112112
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 ,
122- }
123- -> Package[' java' ]
124- }
125-
126113 if $facts [' os' ][' family' ] == ' Debian' {
127114 # Needed for update-java-alternatives
128115 package { 'java-common' :
You can’t perform that action at this time.
0 commit comments