mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Revert "mysql::database::populate: require module `grep'"
This reverts commit 645a2ec3804157e6958056b39b0ae1cb2c720091. Conflicts: .vagrant-puppet/modules/mysql/manifests/database/populate.pp
This commit is contained in:
parent
dc28f53033
commit
d892ae5670
@ -12,7 +12,6 @@
|
||||
# Requires:
|
||||
#
|
||||
# mysql::database::create
|
||||
# grep
|
||||
#
|
||||
# Sample Usage:
|
||||
#
|
||||
@ -24,8 +23,6 @@
|
||||
# }
|
||||
#
|
||||
define mysql::database::populate ($username, $password, $privileges, $schemafile) {
|
||||
include grep
|
||||
|
||||
Exec { path => '/bin:/usr/bin' }
|
||||
|
||||
mysql::database::create { $name:
|
||||
@ -37,9 +34,6 @@ define mysql::database::populate ($username, $password, $privileges, $schemafile
|
||||
exec { "populate-${name}-mysql-db":
|
||||
onlyif => "mysql -u${username} -p${password} ${name} -e \"SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '${name}';\" 2>/dev/null |grep -qEe '^ *0 *$'",
|
||||
command => "mysql -uroot ${name} < ${schemafile}",
|
||||
require => [
|
||||
Mysql::Database::Create[$name],
|
||||
Class['grep']
|
||||
],
|
||||
require => Mysql::Database::Create[$name],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user