Skip to content

Commit

Permalink
Merge pull request #2568 from puppetlabs/CAT-2032
Browse files Browse the repository at this point in the history
Fix apache2-mod_php7 not found for SLES-15
  • Loading branch information
Ramesh7 authored Sep 23, 2024
2 parents 6d218cf + 63de335 commit dd0b61c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifests/mod/php.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
if ($_package_name == 'apache2-mod_php7' and versioncmp($facts['os']['release']['major'], '15') >= 0 and versioncmp($facts['os']['release']['minor'], '3') == 1) {
exec { 'enable legacy repos':
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
command => 'SUSEConnect --product sle-module-legacy/15.5/x86_64',
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.5/x86_64',
command => "SUSEConnect --product sle-module-legacy/${facts['os']['release']['major']}.${facts['os']['release']['minor']}/x86_64",
unless => "SUSEConnect --status-text | grep sle-module-legacy/${facts['os']['release']['major']}.${facts['os']['release']['minor']}/x86_64",
}
}

Expand Down
4 changes: 2 additions & 2 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
if (versioncmp($facts['os']['release']['major'], '15') >= 0 and versioncmp($facts['os']['release']['minor'], '3') == 1) {
exec { 'enable legacy repos':
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
command => 'SUSEConnect --product sle-module-legacy/15.5/x86_64',
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.5/x86_64',
command => "SUSEConnect --product sle-module-legacy/${facts['os']['release']['major']}.${facts['os']['release']['minor']}/x86_64",
unless => "SUSEConnect --status-text | grep sle-module-legacy/${facts['os']['release']['major']}.${facts['os']['release']['minor']}/x86_64",
}
}
# needed for netstat, for serverspec checks
Expand Down

0 comments on commit dd0b61c

Please sign in to comment.