diff --git a/manifests/mod/php.pp b/manifests/mod/php.pp index 940e7b30d1..3ebbc0aff9 100644 --- a/manifests/mod/php.pp +++ b/manifests/mod/php.pp @@ -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, diff --git a/spec/setup_acceptance_node.pp b/spec/setup_acceptance_node.pp index 1a50f70a7d..1f35e3da64 100644 --- a/spec/setup_acceptance_node.pp +++ b/spec/setup_acceptance_node.pp @@ -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',