Commit 28977e14 authored by Markus Frosch's avatar Markus Frosch 📣

icingaweb2: Remove old php when using fpm

parent 4f4330a4
Pipeline #808 failed with stage
in 44 seconds
......@@ -6,9 +6,12 @@ class icinga2_testing::profiles::icingaweb2 {
Package['centos-release-scl'] -> Class['::icingaweb2']
$_use_fpm = true
$_remove_php = true
$_php_common = 'php-common'
$_fpm_service = 'rh-php71-php-fpm'
} else {
$_use_fpm = false
$_remove_php = false
}
if $_use_fpm {
......@@ -21,6 +24,14 @@ class icinga2_testing::profiles::icingaweb2 {
}
}
if $_remove_php {
package { 'php-common':
ensure => absent,
name => $_php_common,
require => Package['icingaweb2'],
}
}
include ::apache
::apache::custom_config { 'icingaweb2':
content => template('icinga2_testing/icingaweb2/apache2.conf.erb'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment