Skip to content

Commit

Permalink
(MAINT) Updating mod_package for SUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Jun 29, 2023
1 parent 6ef5fbf commit 2639704
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/mod/php.pp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@
}

if $facts['os']['name'] == 'SLES' {
if $_package_name == 'apache2-mod_php7' and $facts['os']['release']['major'] == '15' {
exec { 'enable legacy repos':
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
command => 'SUSEConnect --product sle-module-legacy/15.4/x86_64',
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
}
}

::apache::mod { $mod:
package => $_package_name,
package_ensure => $package_ensure,
Expand Down
7 changes: 7 additions & 0 deletions spec/setup_acceptance_node.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

case $facts['os']['family'] {
'SLES', 'SUSE': {
if $facts['os']['release']['major'] == '15' {
exec { 'enable legacy repos':
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
command => 'SUSEConnect --product sle-module-legacy/15.4/x86_64',
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
}
}
# needed for netstat, for serverspec checks
package { 'net-tools-deprecated':
ensure => 'latest',
Expand Down

0 comments on commit 2639704

Please sign in to comment.