Resource Type: vtmrest
- Defined in:
- lib/puppet/type/vtmrest.rb
- Providers:
-
ruby
Overview
Controls a Brocade vTM configuration via REST.
If the object name exists then we will check that the JSON returned from the REST service matches the JSON provided in the content. The content is most likely going to come from a template.
The object will be created if it does not exist.
Example:
vtmrest { ‘pools/testpool’: ensure => present, endpoint => ‘vtm1:9070/api/tm/3.2/config/active’, username => ‘puppet’, password => ‘master’, content => template (‘stingray/pools.erb’), debug => 4, failfast => false, }
In this example, Puppet will ensure that the vTM configuration of pools/testpool matches the configuration provided in the template. The default
type of "application/json" will be used for the content
vtmrest { ‘rules/rateShaping’: endpoint => ‘vtm1:9070/api/tm/3.2/config/active’, username => ‘puppet’, password => ‘master’, type => ‘application/octet-stream’, content => “rate.use(‘myClass’, request.getRemoteIP());” }
In this example we upload a rule and provide the content-type of ‘application/octet-stream’ The default debug level of 0 will be used.
Custom types may be suesceptable to: tickets.puppetlabs.com/browse/PUP-1515