aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-05-08 16:33:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-05-08 16:33:49 -0300
commit230217fc226ab4cb7d08c53ddd0e24efb1b5bcce (patch)
tree813793bc7385033adccbea1969d3cfbb51a148a5
parentabd72fff4123689f2fdb684883a08cb71bb46a8d (diff)
downloadpuppet-php-230217fc226ab4cb7d08c53ddd0e24efb1b5bcce.tar.gz
puppet-php-230217fc226ab4cb7d08c53ddd0e24efb1b5bcce.tar.bz2
Fix: manage_mod_php behavior
-rw-r--r--manifests/params.pp6
-rw-r--r--manifests/series5.pp6
2 files changed, 9 insertions, 3 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 155a5c1..68f561c 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -6,9 +6,9 @@ class php::params {
}
$version7_previous = $::lsbdistcodename ? {
- 'buster' => '7.3',
- 'stretch' => '7.3',
- default => '7.3',
+ 'buster' => [ '7.3', '7.2', '7.1', '7.0' ],
+ 'stretch' => [ '7.3', '7.2', '7.1', '7.0' ],
+ default => [ '7.3', '7.2', '7.1', '7.0' ],
}
$version5 = $::lsbdistcodename ? {
diff --git a/manifests/series5.pp b/manifests/series5.pp
index 6ccf2a0..3f45a0d 100644
--- a/manifests/series5.pp
+++ b/manifests/series5.pp
@@ -78,6 +78,12 @@ class php::series5(
require => Package["libapache2-mod-php${version}"],
}
+ $::php::params::version7_previous.each |$item| {
+ apache::module { "php${item}":
+ ensure => absent,
+ }
+ }
+
apache::module { "php${version7}":
ensure => absent,
require => Package["libapache2-mod-php${version}"],