| 1 |
Puppet::Type.newtype(:nova_rootwrap_config) do |
| 2 |
|
| 3 |
ensurable |
| 4 |
|
| 5 |
newparam(:name, :namevar => true) do |
| 6 |
desc 'Section/setting name to manage from /etc/nova/rootwrap.conf' |
| 7 |
newvalues(/\S+\/\S+/) |
| 8 |
end |
| 9 |
|
| 10 |
newproperty(:value) do |
| 11 |
desc 'The value of the setting to be defined.' |
| 12 |
munge do |value| |
| 13 |
value = value.to_s.strip |
| 14 |
value.capitalize! if value =~ /^(true|false)$/i |
| 15 |
value |
| 16 |
end |
| 17 |
newvalues(/^[\S ]*$/) |
| 18 |
end |
| 19 |
|
| 20 |
newparam(:ensure_absent_val) do |
| 21 |
desc 'A value that is specified as the value property will behave as if ensure => absent was specified' |
| 22 |
defaultto('<SERVICE DEFAULT>') |
| 23 |
end |
| 24 |
|
| 25 |
autorequire(:anchor) do |
| 26 |
['nova::install::end'] |
| 27 |
end |
| 28 |
|
| 29 |
end |