mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Revert "pgsql::database::populate: require module `grep'"
This reverts commit 9bb68c42a0169220d92a6c3408c7416f90529877. Conflicts: .vagrant-puppet/modules/pgsql/manifests/database/populate.pp
This commit is contained in:
parent
0b1f3183ad
commit
dc28f53033
@ -11,7 +11,6 @@
|
||||
# Requires:
|
||||
#
|
||||
# pgsql::database::create
|
||||
# grep
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
@ -22,8 +21,6 @@
|
||||
# }
|
||||
#
|
||||
define pgsql::database::populate ($username, $password, $schemafile) {
|
||||
include grep
|
||||
|
||||
Exec { path => '/bin:/usr/bin' }
|
||||
|
||||
pgsql::database::create { $name:
|
||||
@ -35,9 +32,6 @@ define pgsql::database::populate ($username, $password, $schemafile) {
|
||||
onlyif => "psql -U ${username} -d ${name} -c \"SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '${name}';\" 2>/dev/null |grep -qEe '^ *0 *$'",
|
||||
command => "psql -U ${username} -d ${name} < ${schemafile}",
|
||||
user => 'postgres',
|
||||
require => [
|
||||
Pgsql::Database::Create[$name],
|
||||
Class['grep']
|
||||
],
|
||||
require => Pgsql::Database::Create[$name],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user