Vagrant: Create symlink for the command pipe.

This commit is contained in:
Gunnar Beutner 2013-10-16 21:31:29 +02:00
parent eb28adaf44
commit 179607df87
1 changed files with 13 additions and 0 deletions

View File

@ -32,4 +32,17 @@ class icinga-web {
command => 'mysql -uicinga_web -picinga_web icinga_web < /usr/share/icinga-web/etc/schema/mysql.sql',
require => [ Package['icinga-web'], Exec['create-mysql-icinga-web-db'] ]
}
exec { 'create-icinga1x-spool-dir':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => 'test -d /var/spool/icinga/cmd',
command => 'mkdir -p /var/spool/icinga/cmd',
}
exec { 'create-icinga1x-command-symlink':
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']
}
}