Added puppetlabs-firewall (required by puppetlabs-postgresql), updated the other modules.
This commit is contained in:
parent
5f4b7a3b72
commit
dee66abcdd
137 changed files with 11118 additions and 419 deletions
|
@ -18,7 +18,7 @@ Puppet::Type.type(:postgresql_conf).provide(
|
|||
:to_line => proc { |h|
|
||||
|
||||
# simple string and numeric values don't need to be enclosed in quotes
|
||||
dontneedquote = h[:value].match(/^(\w+|[0-9.-]+)$/)
|
||||
dontneedquote = h[:value].match(/^(\w+)$/)
|
||||
dontneedequal = h[:name].match(/^(include|include_if_exists)$/i)
|
||||
|
||||
str = h[:name].downcase # normalize case
|
||||
|
|
|
@ -63,6 +63,7 @@ Puppet::Type.type(:postgresql_psql).provide(:ruby) do
|
|||
|
||||
command = [resource[:psql_path]]
|
||||
command.push("-d", resource[:db]) if resource[:db]
|
||||
command.push("-p", resource[:port]) if resource[:port]
|
||||
command.push("-t", "-c", sql)
|
||||
|
||||
if resource[:cwd]
|
||||
|
|
|
@ -49,6 +49,10 @@ Puppet::Type.newtype(:postgresql_psql) do
|
|||
desc "The name of the database to execute the SQL command against."
|
||||
end
|
||||
|
||||
newparam(:port) do
|
||||
desc "The port of the database server to execute the SQL command against."
|
||||
end
|
||||
|
||||
newparam(:search_path) do
|
||||
desc "The schema search path to use when executing the SQL command"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue