1 Puppet::Type.newtype(:barometer_config) do
5 newparam(:name, :namevar => true) do
6 desc 'Section/setting name to manage from barometer.conf'
10 newproperty(:value) do
11 desc 'The value of the setting to be defined.'
13 value = value.to_s.strip
14 value.capitalize! if value =~ /^(true|false)$/i
19 def is_to_s( currentvalue )
21 return '[old secret redacted]'
27 def should_to_s( newvalue )
29 return '[new secret redacted]'
36 newparam(:secret, :boolean => true) do
37 desc 'Whether to hide the value from Puppet logs. Defaults to `false`.'
39 newvalues(:true, :false)
44 newparam(:ensure_absent_val) do
45 desc 'A value that is specified as the value property will behave as if ensure => absent was specified'
46 defaultto('<SERVICE DEFAULT>')
49 autorequire(:package) do