Skip to content

Commit

Permalink
Merge pull request #690 from puppetlabs/maint-enable-legacy-repo-suse
Browse files Browse the repository at this point in the history
(MAINT) - Enable legacy repo for SUSE 15 SP4
  • Loading branch information
jordanbreen28 authored Jun 29, 2023
2 parents f6e6990 + 9442262 commit c15e1e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
#
class ntp::install {
if $ntp::package_manage {
if ($facts['os']['name'] == 'SLES' and $facts['os']['release']['major'] == '15') {
exec { 'Enable legacy repos':
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
command => '/usr/bin/SUSEConnect --product sle-module-legacy/15.4/x86_64',
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
}
}

package { $ntp::package_name:
ensure => $ntp::package_ensure,
}
Expand Down

0 comments on commit c15e1e0

Please sign in to comment.