4661d17814
... so that correct packages and services are required without re-defining them in resource implementations. Change-Id: I031ea1bf8722593f9d2e326bce16801910971f97
34 lines
733 B
Ruby
34 lines
733 B
Ruby
Puppet::Type.newtype(:neutron_plugin_nuage) do
|
|
|
|
ensurable
|
|
|
|
newparam(:name, :namevar => true) do
|
|
desc 'Section/setting name to manage for nuage/plugin.ini'
|
|
newvalues(/\S+\/\S+/)
|
|
end
|
|
|
|
newproperty(:value) do
|
|
desc 'The value of the settings 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
|
|
|
|
autorequire(:anchor) do
|
|
['neutron::install::end']
|
|
end
|
|
|
|
autorequire(:file) do
|
|
'/etc/neutron/plugins/nuage/plugin.ini'
|
|
end
|
|
|
|
end
|
|
|