Puppet Class: pulsevtm::aptimizer_profiles_other_web_application

Defined in:
manifests/aptimizer_profiles_other_web_application.pp

Overview

class: pulsevtm::aptimizer_profiles_other_web_application

This class is a direct implementation of brocadvtm::aptimizer_profiles

Please refer to the documentation in that module for more information

Parameters:

  • ensure (Any) (defaults to: present)
  • basic__background_after (Any) (defaults to: 0)
  • basic__background_on_additional_resources (Any) (defaults to: false)
  • basic__mode (Any) (defaults to: 'active')
  • basic__show_info_bar (Any) (defaults to: true)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/aptimizer_profiles_other_web_application.pp', line 7

class pulsevtm::aptimizer_profiles_other_web_application (
  $ensure                                    = present,
  $basic__background_after                   = 0,
  $basic__background_on_additional_resources = false,
  $basic__mode                               = 'active',
  $basic__show_info_bar                      = true,
){
  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 aptimizer_profiles_other_web_application ${name}")
  vtmrest { 'aptimizer/profiles/Other%20web%20application':
    ensure   => $ensure,
    before   => Class[pulsevtm::purge],
    endpoint => "https://${ip}:${port}/api/tm/6.0/config/active",
    username => $user,
    password => $pass,
    content  => template('pulsevtm/aptimizer_profiles.erb'),
    type     => 'application/json',
    internal => 'aptimizer_profiles_other_web_application',
    failfast => $pulsevtm::failfast,
    debug    => $pulsevtm::debug,
  }

  if ( $purge ) {
    ensure_resource('file', "${purge_state_dir}/aptimizer_profiles", {ensure => present})
    file_line { 'aptimizer/profiles/Other%20web%20application':
      line => 'aptimizer/profiles/Other%20web%20application',
      path => "${purge_state_dir}/aptimizer_profiles",
    }
  }
}