Skip to content

Commit

Permalink
Outsource 'icing_web' database creation into mysql::database::create
Browse files Browse the repository at this point in the history
refs #6842
  • Loading branch information
Al2Klimov committed Aug 5, 2014
1 parent a110b25 commit 05afbee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .vagrant-puppet/manifests/default.pp
Expand Up @@ -639,12 +639,10 @@
require => [ File['/etc/init.d/icinga_command_proxy'], Service['icinga-mysql'], Service['icinga-pgsql'] ]
}

exec { 'create-mysql-icinga_web-db':
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\';"',
require => Service['mysqld']
mysql::database::create { 'icinga_web':
username => 'icinga_web',
password => 'icinga_web',
privileges => 'ALL',
}

cmmi { 'icinga-web':
Expand Down

0 comments on commit 05afbee

Please sign in to comment.