Puppet Class: brocadevtm::log_export_routing_software
- Defined in:
- manifests/log_export_routing_software.pp
Overview
class: brocadevtm::log_export_routing_software
This class is a direct implementation of brocadvtm::log_export
Please refer to the documentation in that module for more information
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 44 45 46 |
# File 'manifests/log_export_routing_software.pp', line 7
class brocadevtm::log_export_routing_software (
$ensure = present,
$basic__appliance_only = true,
$basic__enabled = false,
$basic__files = '["%ZEUSHOME%/zxtm/log/routing_sw*"]',
$basic__history = 'none',
$basic__history_period = 10,
$basic__metadata = '[{"name":"source","value":"rhilog"},{"name":"sourcetype","value":"zxtm_rhi_log"}]',
$basic__note = 'Log files generated by the traffic manager\'s OSPF and BGP routing software.',
){
include brocadevtm
$ip = $brocadevtm::rest_ip
$port = $brocadevtm::rest_port
$user = $brocadevtm::rest_user
$pass = $brocadevtm::rest_pass
$purge = $brocadevtm::purge
$purge_state_dir = $brocadevtm::purge_state_dir
info ("Configuring log_export_routing_software ${name}")
vtmrest { 'log_export/Routing%20Software':
ensure => $ensure,
before => Class[brocadevtm::purge],
endpoint => "https://${ip}:${port}/api/tm/6.0/config/active",
username => $user,
password => $pass,
content => template('brocadevtm/log_export.erb'),
type => 'application/json',
internal => 'log_export_routing_software',
failfast => $brocadevtm::failfast,
debug => $brocadevtm::debug,
}
if ( $purge ) {
ensure_resource('file', "${purge_state_dir}/log_export", {ensure => present})
file_line { 'log_export/Routing%20Software':
line => 'log_export/Routing%20Software',
path => "${purge_state_dir}/log_export",
}
}
}
|