mirror of
https://github.com/fspc/bike-database.git
synced 2025-04-04 10:03:22 -04:00
18 lines
343 B
Ruby
Executable File
18 lines
343 B
Ruby
Executable File
# This has to be a separate type to enable collecting
|
|
Puppet::Type.newtype(:database) do
|
|
@doc = "Manage databases."
|
|
|
|
ensurable
|
|
|
|
newparam(:name, :namevar=>true) do
|
|
desc "The name of the database."
|
|
end
|
|
|
|
newproperty(:charset) do
|
|
desc "The characterset to use for a database"
|
|
defaultto :utf8
|
|
newvalue(/^\S+$/)
|
|
end
|
|
|
|
end
|