-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsolace_bridge.yml
109 lines (97 loc) · 3.01 KB
/
solace_bridge.yml
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
100
101
102
103
104
105
106
107
108
109
- name: Playbook to add a bridge named 'mybridge'
hosts: localhost
vars:
msg_vpn: default
bridge: mybridge
remote_vpn: default
remote_vpn_location: 192.168.0.34:55555
virtual_router: auto
trusted_cn: www.solace.com
remote_subscription: data/>
tasks:
- name: Remove Bridge
solace_bridge:
name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
state: absent
- name: Add Bridge
solace_bridge:
name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
settings:
enabled: false
remoteAuthenticationBasicClientUsername: default
remoteAuthenticationBasicPassword: password
remoteAuthenticationScheme: basic
- name: Update bridge
solace_bridge:
name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
settings:
enabled: true
register: testout
- name: Remove Bridge Remote VPN
solace_bridge_remote_vpn:
name: "{{ remote_vpn }}"
bridge_name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
remote_vpn_location: "{{remote_vpn_location}}"
virtual_router: "{{ virtual_router }}"
state: absent
- name: Add Bridge Remote VPN
solace_bridge_remote_vpn:
name: "{{ remote_vpn }}"
msg_vpn: "{{ msg_vpn }}"
bridge_name: "{{ bridge }}"
remote_vpn_location: "{{remote_vpn_location}}"
virtual_router: "{{ virtual_router }}"
settings:
enabled: false
clientUsername: default
password: password
- name: Update bridge remote VPN
solace_bridge_remote_vpn:
name: "{{ remote_vpn }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
bridge_name: "{{ bridge }}"
remote_vpn_location: "{{remote_vpn_location}}"
settings:
enabled: true
- name: Remove Trusted Common Name
solace_bridge_tls_cn:
name: "{{ trusted_cn }}"
bridge_name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
state: absent
- name: Add Trusted Common Name
solace_bridge_tls_cn:
name: "{{ trusted_cn }}"
msg_vpn: "{{ msg_vpn }}"
bridge_name: "{{ bridge }}"
virtual_router: "{{ virtual_router }}"
- name: Update Trusted Common Name
solace_bridge_tls_cn:
name: "{{ trusted_cn }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
bridge_name: "{{ bridge }}"
- name: Remove Remote Subscription
solace_bridge_remote_subscription:
name: "{{ remote_subscription }}"
bridge_name: "{{ bridge }}"
msg_vpn: "{{ msg_vpn }}"
virtual_router: "{{ virtual_router }}"
deliver_always: false
state: absent
- name: Add Remote Subscription
solace_bridge_remote_subscription:
name: "{{ remote_subscription }}"
msg_vpn: "{{ msg_vpn }}"
bridge_name: "{{ bridge }}"
virtual_router: "{{ virtual_router }}"
deliver_always: true