mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
Outsource 'icing_web' database creation into mysql::database::create
refs #6842
This commit is contained in:
parent
a110b25071
commit
05afbeebe0
@ -639,12 +639,10 @@ service { 'icinga_command_proxy':
|
|||||||
require => [ File['/etc/init.d/icinga_command_proxy'], Service['icinga-mysql'], Service['icinga-pgsql'] ]
|
require => [ File['/etc/init.d/icinga_command_proxy'], Service['icinga-mysql'], Service['icinga-pgsql'] ]
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { 'create-mysql-icinga_web-db':
|
mysql::database::create { 'icinga_web':
|
||||||
unless => 'mysql -uicinga_web -picinga_web icinga_web',
|
username => 'icinga_web',
|
||||||
command => 'mysql -uroot -e "CREATE DATABASE icinga_web; \
|
password => 'icinga_web',
|
||||||
GRANT ALL ON icinga_web.* TO icinga_web@localhost \
|
privileges => 'ALL',
|
||||||
IDENTIFIED BY \'icinga_web\';"',
|
|
||||||
require => Service['mysqld']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cmmi { 'icinga-web':
|
cmmi { 'icinga-web':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user