-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.pp
100 lines (81 loc) · 4.07 KB
/
example.pp
1
2
3
4
5
6
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
class { 'brocadevtm':
rest_user => 'admin',
rest_pass => '{{AdminPass}}',
rest_ip => '{{vADC1PrivateIP}}',
rest_port => 9070,
}
class { 'brocadevtm::global_settings':
cluster_comms__allowed_update_hosts => '["all"]',
fault_tolerance__auto_failback => true,
fault_tolerance__frontend_check_ips => '[]',
fault_tolerance__monitor_interval => 2000,
fault_tolerance__monitor_timeout => 15,
java__enabled => true,
}
include brocadevtm::monitors_full_http
brocadevtm::pools { 'WebPool':
ensure => present,
basic__monitors => '["Full HTTP"]',
basic__nodes_table => '[{"node":"{{WebServer1}}:80","priority":1,"state":"active","weight":1}]',
require => [ Class[Brocadevtm::Monitors_full_http], ],
}
brocadevtm::ssl_server_keys { 'Example-Cert':
ensure => present,
basic__private => '{{SSLPrivateKey}}',
basic__public => '{{SSLPublicKey}}',
}
brocadevtm::traffic_ip_groups { 'Web%20VIP':
ensure => present,
basic__ipaddresses => '["{{TrafficIP1}}","{{TrafficIP2}}"]',
basic__machines => '["{{vADC1DNS}}","{{vADC2DNS}}"]',
basic__mode => 'ec2vpcelastic',
}
brocadevtm::traffic_managers { '{{vADC1DNS}}':
ensure => present,
basic__adminMasterXMLIP => '{{vADC1PrivateIP}}',
basic__adminSlaveXMLIP => '{{vADC1PrivateIP}}',
basic__authenticationServerIP => '{{vADC1PrivateIP}}',
basic__cloud_platform => 'ec2',
basic__numberOfCPUs => 1,
basic__restServerPort => 11003,
basic__updaterIP => '{{vADC1PrivateIP}}',
appliance__licence_agreed => true,
appliance__ssh_password_allowed => false,
cluster_comms__external_ip => 'EC2',
}
brocadevtm::traffic_managers { '{{vADC2DNS}}':
ensure => present,
basic__adminMasterXMLIP => '{{vADC2PrivateIP}}',
basic__adminSlaveXMLIP => '{{vADC2PrivateIP}}',
basic__authenticationServerIP => '{{vADC2PrivateIP}}',
basic__cloud_platform => 'ec2',
basic__numberOfCPUs => 1,
basic__restServerPort => 11003,
basic__updaterIP => '{{vADC2PrivateIP}}',
appliance__licence_agreed => true,
appliance__ssh_password_allowed => false,
cluster_comms__external_ip => 'EC2',
}
brocadevtm::virtual_servers { 'WebService':
ensure => present,
basic__enabled => true,
basic__listen_on_any => false,
basic__listen_on_traffic_ips => '["Web VIP"]',
basic__pool => 'WebPool',
basic__port => 80,
connection__timeout => 40,
require => [ Brocadevtm::Pools['WebPool'], Brocadevtm::Traffic_ip_groups['Web%20VIP'], ],
}
brocadevtm::virtual_servers { 'WebService%20SSL':
ensure => present,
basic__enabled => true,
basic__listen_on_any => false,
basic__listen_on_traffic_ips => '["Web VIP"]',
basic__pool => 'WebPool',
basic__port => 443,
basic__ssl_decrypt => true,
connection__timeout => 40,
ssl__ocsp_issuers => '[{"issuer":"_DEFAULT_","aia":true,"nonce":"off","required":"optional","responder_cert":"","signer":"","url":""}]',
ssl__server_cert_default => 'Example-Cert',
require => [ Brocadevtm::Pools['WebPool'], Brocadevtm::Traffic_ip_groups['Web%20VIP'], Brocadevtm::Ssl_server_keys['Example-Cert'], ],
}