Skip to content

Commit 2639704

Browse files
committed
(MAINT) Updating mod_package for SUSE
1 parent 6ef5fbf commit 2639704

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

manifests/mod/php.pp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
}
107107

108108
if $facts['os']['name'] == 'SLES' {
109+
if $_package_name == 'apache2-mod_php7' and $facts['os']['release']['major'] == '15' {
110+
exec { 'enable legacy repos':
111+
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
112+
command => 'SUSEConnect --product sle-module-legacy/15.4/x86_64',
113+
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
114+
}
115+
}
116+
109117
::apache::mod { $mod:
110118
package => $_package_name,
111119
package_ensure => $package_ensure,

spec/setup_acceptance_node.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
case $facts['os']['family'] {
77
'SLES', 'SUSE': {
8+
if $facts['os']['release']['major'] == '15' {
9+
exec { 'enable legacy repos':
10+
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
11+
command => 'SUSEConnect --product sle-module-legacy/15.4/x86_64',
12+
unless => 'SUSEConnect --status-text | grep sle-module-legacy/15.4/x86_64',
13+
}
14+
}
815
# needed for netstat, for serverspec checks
916
package { 'net-tools-deprecated':
1017
ensure => 'latest',

0 commit comments

Comments
 (0)