notify => Service['apache']
}
+ package { 'icinga-web-mysql':
+ ensure => installed,
+ require => Class['icinga-rpm-snapshot'],
+ notify => Service['apache']
+ }
+
exec { 'create-mysql-icinga-web-db':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => 'mysql -uicinga_web -picinga_web icinga_web',
- command => 'mysql -uroot -e "CREATE DATABASE icinga_web; \
- GRANT ALL ON icinga_web.* TO icinga_web@localhost \
- IDENTIFIED BY \'icinga_web\';"',
+ command => 'mysql -uroot -e "CREATE DATABASE icinga_web; GRANT ALL ON icinga_web.* TO icinga_web@localhost IDENTIFIED BY \'icinga_web\';"',
require => Service['mysqld']
}
exec { 'create-mysql-icinga2-ido-db':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
unless => 'mysql -uicinga -picinga icinga',
- command => 'mysql -uroot -e "CREATE DATABASE icinga; \
- GRANT ALL ON icinga.* TO icinga@localhost \
- IDENTIFIED BY \'icinga\';"',
+ command => 'mysql -uroot -e "CREATE DATABASE icinga; GRANT ALL ON icinga.* TO icinga@localhost IDENTIFIED BY \'icinga\';"',
require => Service['mysqld']
}