diff options
author | Tim Rozet <trozet@redhat.com> | 2016-10-06 18:48:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-06 18:48:40 +0000 |
commit | a498848f5977ed6d1226f2f6b426bc5355c01f68 (patch) | |
tree | 4b4cccb69fe17ace1f9966bd5a7b134616c652b0 /build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb | |
parent | 95a344a46144d88cdac35bc02a463b6e3d7eab8c (diff) | |
parent | 412b07f4f621dfc4881fbd2105ab82d7dd7a98be (diff) |
Merge "VPP version update"
Diffstat (limited to 'build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb')
-rw-r--r-- | build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb b/build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb new file mode 100644 index 00000000..f43a8b41 --- /dev/null +++ b/build/puppet-neutron/lib/puppet/type/neutron_agent_vpp.rb @@ -0,0 +1,28 @@ +Puppet::Type.newtype(:neutron_agent_vpp) do + + ensurable + + newparam(:name, :namevar => true) do + desc 'Section/setting name to manage from vpp agent config.' + 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 + + autorequire(:package) do + 'networking-vpp' + end + +end
\ No newline at end of file |