We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad8f029 commit ffd99c6Copy full SHA for ffd99c6
lib/puppet/type/postgresql_conf.rb
@@ -2,12 +2,10 @@
2
3
Puppet::Type.newtype(:postgresql_conf) do
4
@doc = 'This type allows puppet to manage postgresql.conf parameters.'
5
-
6
ensurable
7
8
newparam(:name) do
9
desc 'A unique title for the resource.'
10
11
newvalues(%r{^[\w.]+$})
12
end
13
@@ -21,13 +19,7 @@
21
19
22
20
23
newproperty(:target) do
24
- desc 'The path to postgresql.conf'
25
- defaultto do
26
- if @resource.class.defaultprovider.ancestors.include?(Puppet::Provider::ParsedFile)
27
- @resource.class.defaultprovider.default_target
28
- else
29
- nil
30
- end
31
+ desc 'The path to the postgresql config file'
+ newvalues(%r{^\/[a-z0-9]+[a-z0-9(\/)(\-)]*[\w]+.conf$})
32
33
0 commit comments