Vagrant: Fix icinga-web command pipe.

fixes #4873
This commit is contained in:
Michael Friedrich 2013-10-18 22:34:44 +02:00
parent 0c37d63af5
commit f4f58f248d
1 changed files with 7 additions and 7 deletions

View File

@ -33,16 +33,16 @@ class icinga-web {
require => [ Package['icinga-web'], Exec['create-mysql-icinga-web-db'] ]
}
exec { 'create-icinga1x-spool-dir':
exec { 'set-icinga2-cmd-pipe-path':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => 'test -d /var/spool/icinga/cmd',
command => 'mkdir -p /var/spool/icinga/cmd',
command => 'sed -i \'s/\/var\/spool\/icinga\/cmd\/icinga.cmd/\/var\/run\/icinga2\/cmd\/icinga2.cmd/g\' /etc/icinga-web/conf.d/access.xml',
require => Package['icinga-web']
}
exec { 'create-icinga1x-command-symlink':
exec { 'clear-config-cache':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => 'test -L /var/spool/icinga/cmd/icinga.cmd',
command => 'ln -sf /var/run/icinga2/cmd/icinga2.cmd /var/spool/icinga/cmd/icinga.cmd',
require => Exec['create-icinga1x-spool-dir']
command => '/usr/bin/icinga-web-clearcache',
require => Exec['set-icinga2-cmd-pipe-path']
}
}