We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f143cac commit bcec57bCopy full SHA for bcec57b
manifests/init.pp
@@ -110,6 +110,14 @@
110
default => '--jre'
111
}
112
113
+ if ($facts['os']['family'] == 'SLES' or $facts['os']['family'] == 'Suse') and $facts['os']['release']['major'] == '15' {
114
+ exec { 'Enable legacy repos':
115
+ path => '/bin:/usr/bin/:/sbin:/usr/sbin',
116
+ command => 'SUSEConnect --product sle-module-legacy/15.4/x86_64 && zypper refresh',
117
+ unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
118
+ }
119
120
+
121
if $facts['os']['family'] == 'Debian' {
122
# Needed for update-java-alternatives
123
package { 'java-common':
0 commit comments