blob: 7ae5289b87ff79108f361a4e7050f626e67b912c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# This has to be a separate type to enable collecting
Puppet::Type.newtype(:mysql_schema) do
@doc = "Manage a database user's rights."
ensurable
autorequire :exec do
["mysql_rootpw_flush"]
end
autorequire :mysql_database do
[self[:db]]
end
newparam(:name) do
desc "The file used to create the schema. This will be autorequired."
end
newparam(:rootpw) do
desc "The mysql root user password"
end
newparam(:db) do
desc "The database on which the schema is created"
end
end
|