mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
Outsource 'icingaweb' database creation into mysql::database::create
refs #6842
This commit is contained in:
parent
73a29abac3
commit
a110b25071
@ -573,12 +573,10 @@ populate_monitoring_test_config_plugins{ ['test_hostcheck.pl', 'test_servicechec
|
||||
#
|
||||
# Following section creates and populates MySQL and PostgreSQL Icinga Web 2 databases
|
||||
#
|
||||
exec { 'create-mysql-icingaweb-db':
|
||||
unless => 'mysql -uicingaweb -picingaweb icingaweb',
|
||||
command => 'mysql -uroot -e "CREATE DATABASE icingaweb; \
|
||||
GRANT ALL ON icingaweb.* TO icingaweb@localhost \
|
||||
IDENTIFIED BY \'icingaweb\';"',
|
||||
require => Service['mysqld']
|
||||
mysql::database::create { 'icingaweb':
|
||||
username => 'icingaweb',
|
||||
password => 'icingaweb',
|
||||
privileges => 'ALL',
|
||||
}
|
||||
|
||||
pgsql::database::create { 'icingaweb':
|
||||
|
Loading…
x
Reference in New Issue
Block a user