Remove previous Nagios services

Change-Id: I0a17c441389e51fd6bd2e3fd0b29fba81e17ab53
This commit is contained in:
Swann Croiset 2017-01-25 14:59:17 +01:00
parent a9141b477d
commit 7a4a33c540
1 changed files with 9 additions and 0 deletions

View File

@ -164,3 +164,12 @@ file { $hiera_file:
if $fuel_version >= 9.0 {
class { '::osnailyfacter::netconfig::hiera_default_route' :}
}
# Purge the Nagios services from previous 0.10.x version.
# Nagios will be correctly (re)configured by nagios.pp manifest.
$purge = prefix(['lma_services.cfg', 'lma_services_commands.cfg'],
'/etc/nagios3/conf.d/')
file { $purge:
ensure => absent,
backup => '.bak-version-0.10.x',
}