mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
icingaweb2_dev: update SQL schema file paths
This commit is contained in:
parent
1ce99d277a
commit
edd8eced5d
@ -60,26 +60,13 @@ class icingaweb2_dev {
|
|||||||
username => 'icingaweb',
|
username => 'icingaweb',
|
||||||
password => 'icingaweb',
|
password => 'icingaweb',
|
||||||
privileges => 'ALL',
|
privileges => 'ALL',
|
||||||
schemafile => '/vagrant/etc/schema/accounts.mysql.sql',
|
schemafile => '/vagrant/etc/schema/mysql.schema.sql',
|
||||||
}
|
}
|
||||||
|
|
||||||
pgsql::database::populate { 'icingaweb':
|
pgsql::database::populate { 'icingaweb':
|
||||||
username => 'icingaweb',
|
username => 'icingaweb',
|
||||||
password => 'icingaweb',
|
password => 'icingaweb',
|
||||||
schemafile => '/vagrant/etc/schema/accounts.pgsql.sql',
|
schemafile => '/vagrant/etc/schema/pgsql.schema.sql',
|
||||||
}
|
|
||||||
|
|
||||||
exec { 'populate-icingaweb-mysql-db-preferences':
|
|
||||||
unless => 'mysql -uicingaweb -picingaweb icingaweb -e "SELECT * FROM preference;" &> /dev/null',
|
|
||||||
command => 'mysql -uicingaweb -picingaweb icingaweb < /vagrant/etc/schema/preferences.mysql.sql',
|
|
||||||
require => Mysql::Database::Populate['icingaweb'],
|
|
||||||
}
|
|
||||||
|
|
||||||
exec { 'populate-icingweb-pgsql-db-preferences':
|
|
||||||
unless => 'psql -U icingaweb -d icingaweb -c "SELECT * FROM preference;" &> /dev/null',
|
|
||||||
command => 'psql -U icingaweb -d icingaweb -f /vagrant/etc/schema/preferences.pgsql.sql',
|
|
||||||
user => 'postgres',
|
|
||||||
require => Pgsql::Database::Populate['icingaweb'],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/httpd/conf.d/icingaweb.conf':
|
file { '/etc/httpd/conf.d/icingaweb.conf':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user