Defined Type: pulsevtm::custom

Defined in:
manifests/custom.pp

Overview

Define: pulsevtm::custom

Custom configuration set Custom configuration sets store arbitrary named values. These values can be read by SOAP or REST clients.

Parameters

basic__string_lists

This table contains named lists of strings Type:array Properties:of list”, “type”=>“string”, “value”=>list of user-specified strings.”, “type”=>“array”, “uniqueItems”=>false, “items”=>{“type”=>“string”}}

Examples

pulsevtm::custom { ‘example’:

ensure => present,

}

Authors

Pulse Secure <puppet-vadc@pulsesecure.net>

Copyright 2018 Pulse Secure

Parameters:

  • ensure (Any)
  • basic__string_lists (Any) (defaults to: '[]')


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'manifests/custom.pp', line 31

define pulsevtm::custom (
  $ensure,
  $basic__string_lists = '[]',
){
  include pulsevtm
  $ip              = $pulsevtm::rest_ip
  $port            = $pulsevtm::rest_port
  $user            = $pulsevtm::rest_user
  $pass            = $pulsevtm::rest_pass
  $purge           = $pulsevtm::purge
  $purge_state_dir = $pulsevtm::purge_state_dir

  info ("Configuring custom ${name}")
  vtmrest { "custom/${name}":
    ensure   => $ensure,
    before   => Class[pulsevtm::purge],
    endpoint => "https://${ip}:${port}/api/tm/6.0/config/active",
    username => $user,
    password => $pass,
    content  => template('pulsevtm/custom.erb'),
    type     => 'application/json',
    internal => 'custom',
    failfast => $pulsevtm::failfast,
    debug    => $pulsevtm::debug,
  }

  if ( $purge ) {
    ensure_resource('file', "${purge_state_dir}/custom", {ensure => present})
    file_line { "custom/${name}":
      line => "custom/${name}",
      path => "${purge_state_dir}/custom",
    }
  }
}