puppet-neutron/lib/puppet/type/neutron_l3_agent_config.rb

31 lines
683 B
Ruby

Puppet::Type.newtype(:neutron_l3_agent_config) do
ensurable
newparam(:name, :namevar => true) do
desc 'Section/setting name to manage from l3_agent.ini'
newvalues(/\S+\/\S+/)
end
newproperty(:value) do
desc 'The value of the setting to be defined.'
munge do |value|
value = value.to_s.strip
value.capitalize! if value =~ /^(true|false)$/i
value
end
end
newparam(:ensure_absent_val) do
desc 'A value that is specified as the value property will behave as if ensure => absent was specified'
defaultto('<SERVICE DEFAULT>')
end
newparam(:transform_to)
autorequire(:anchor) do
['neutron::install::end']
end
end