Puppet Class: brocadevtm::user_groups_demo
- Defined in:
- manifests/user_groups_demo.pp
Overview
class: brocadevtm::user_groups_demo
This class is a direct implementation of brocadvtm::user_groups
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 |
# File 'manifests/user_groups_demo.pp', line 7
class brocadevtm::user_groups_demo (
$ensure = present,
$basic__description = 'Full access, except to user management / system',
$basic__password_expire_time = 0,
$basic__permissions = '[{"name":"Web_Cache","access_level":"full"},{"name":"Wizard!ClusterJoin","access_level":"none"},{"name":"Java","access_level":"full"},{"name":"Event_Log","access_level":"full"},{"name":"Monitors","access_level":"full"},{"name":"Analytics_Export","access_level":"full"},{"name":"Configure","access_level":"full"},{"name":"Wizard","access_level":"full"},{"name":"Wizard!FreeDiskSpace","access_level":"none"},{"name":"Traffic_Managers!Upgrade","access_level":"none"},{"name":"Security","access_level":"ro"},{"name":"Wizard!Restore","access_level":"none"},{"name":"Shutdown","access_level":"ro"},{"name":"Web_Cache!Clear","access_level":"none"},{"name":"Traffic_Managers","access_level":"full"},{"name":"DateTime","access_level":"ro"},{"name":"Log_Viewer","access_level":"full"},{"name":"Bandwidth","access_level":"full"},{"name":"Request_Logs","access_level":"full"},{"name":"SNMP","access_level":"ro"},{"name":"Reboot","access_level":"ro"},{"name":"Connections","access_level":"full"},{"name":"Virtual_Servers","access_level":"full"},{"name":"SOAP_API","access_level":"none"},{"name":"Networking","access_level":"ro"},{"name":"Pools","access_level":"full"},{"name":"Support","access_level":"full"},{"name":"Global_Settings","access_level":"full"},{"name":"Catalog","access_level":"full"},{"name":"Java!Edit","access_level":"full"},{"name":"Appliance_Console","access_level":"none"},{"name":"SLM","access_level":"full"},{"name":"SSL","access_level":"full"},{"name":"Monitoring","access_level":"full"},{"name":"Service_Protection","access_level":"full"},{"name":"Persistence","access_level":"full"},{"name":"Alerting","access_level":"full"},{"name":"Audit_Log","access_level":"full"},{"name":"Backup","access_level":"ro"},{"name":"Extra_Files","access_level":"full"},{"name":"Statd","access_level":"full"},{"name":"Rate","access_level":"full"},{"name":"Help","access_level":"full"},{"name":"Restart","access_level":"ro"},{"name":"Wizard!Backup","access_level":"none"},{"name":"Custom","access_level":"full"},{"name":"Aptimizer","access_level":"full"},{"name":"Traffic_Managers!AddRemove","access_level":"none"},{"name":"Event_Log!Clear","access_level":"none"},{"name":"Rules","access_level":"full"},{"name":"Traffic_IP_Groups","access_level":"full"},{"name":"Draining","access_level":"full"},{"name":"License_Keys","access_level":"ro"},{"name":"Diagnose","access_level":"full"},{"name":"Access_Management","access_level":"ro"},{"name":"NAT","access_level":"ro"},{"name":"Config_Summary","access_level":"full"},{"name":"MainIndex","access_level":"full"}]',
$basic__timeout = 30,
){
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 user_groups_demo ${name}")
vtmrest { 'user_groups/Demo':
ensure => $ensure,
before => Class[brocadevtm::purge],
endpoint => "https://${ip}:${port}/api/tm/4.0/config/active",
username => $user,
password => $pass,
content => template('brocadevtm/user_groups.erb'),
type => 'application/json',
internal => 'user_groups_demo',
failfast => $brocadevtm::failfast,
debug => 0,
}
if ( $purge ) {
ensure_resource('file', "${purge_state_dir}/user_groups", {ensure => present})
file_line { 'user_groups/Demo':
line => 'user_groups/Demo',
path => "${purge_state_dir}/user_groups",
}
}
}
|