-
Notifications
You must be signed in to change notification settings - Fork 2
/
solace_acl_profile.yml
95 lines (82 loc) · 2.48 KB
/
solace_acl_profile.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
- name: Playbook to add a ACL profile named 'new_acl'
hosts: localhost
vars:
msg_vpn: default
acl_profile: new_acl
client_address: 192.168.1.64/26
publish_topic: topic/#
tasks:
- name: Remove ACL Profile
solace_acl_profile:
name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL Profile
solace_acl_profile:
name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
settings:
clientConnectDefaultAction: allow
- name: Update ACL Profile
solace_acl_profile:
name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
settings:
publishTopicDefaultAction: allow
- name: Remove ACL Client Connect Exception
solace_acl_connect:
name: "{{client_address}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL Client Connect Exception
solace_acl_connect:
name: "{{client_address}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
- name: Remove MQTT ACL Publish Exception
solace_acl_publish:
name: "{{publish_topic}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL MQTT Publish Exception
solace_acl_publish:
name: "{{publish_topic}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
topic_syntax: mqtt
- name: Remove ACL Publish Exception
solace_acl_publish:
name: events/>
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL Publish Exception
solace_acl_publish:
name: events/>
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
- name: Remove MQTT ACL Subscribe Exception
solace_acl_subscribe:
name: "{{publish_topic}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL MQTT Subscribe Exception
solace_acl_subscribe:
name: "{{publish_topic}}"
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
topic_syntax: mqtt
- name: Remove ACL Subscribe Exception
solace_acl_subscribe:
name: events/>
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"
state: absent
- name: Add ACL Subscribe Exception
solace_acl_subscribe:
name: events/>
acl_profile_name: "{{ acl_profile }}"
msg_vpn: "{{ msg_vpn }}"