Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/tests/regression/roles/sonic_ldap/defaults/main.yml

raw symbols SCIP
1 ---
2 ansible_connection: httpapi
3
4 vrf1: "VrfReg1"
5 vrf2: "VrfReg2"
6 secprofile: "default"
7
8 preparations_tests:
9 vrfs:
10 - name: '{{ vrf1 }}'
11 - name: '{{ vrf2 }}'
12 crypto_profile: '{{ secprofile }}'
13
14 sonic_ldap_tests:
15 - name: test_case_01
16 description: Add LDAP global and nss configuration
17 state: merged
18 input:
19 - name: "global"
20 port: 389
21 version: 3
22 servers:
23 - address: 89.0.142.86
24 - address: 244.178.44.111
25 priority: 10
26 port: 1550
27 ssl: start_tls
28 binddn: "CN=example.com"
29 map:
30 default_attribute:
31 - from: "attr1"
32 to: "attr2"
33 - from: "attr3"
34 to: "attr4"
35 objectclass:
36 - from: "attr1"
37 to: "attr3"
38 - name: "nss"
39 nss_base_netgroup: "group1"
40 idle_timelimit: 25
41 timelimit: 15
42 scope: "sub"
43 nss_base_sudoers: "sudo1"
44 - name: test_case_02
45 description: Add LDAP pam and sudo configuration
46 state: merged
47 input:
48 - name: "pam"
49 base: "admin"
50 binddn: "CN=example.com"
51 pam_login_attribute: "loginattrstring"
52 retry: 3
53 scope: one
54 - name: "global"
55 nss_base_passwd: password
56 pam_login_attribute: "loginattrstring"
57 nss_skipmembers: false
58 vrf: '{{ vrf1 }}'
59 - name: "sudo"
60 bindpw:
61 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
62 encrypted: true
63 base: "base_name"
64 sudoers_search_filter: "filter1"
65 timelimit: 10
66 version: 3
67 - name: test_case_03
68 description: Change global and sudo LDAP configurations
69 state: merged
70 input:
71 - name: "global"
72 nss_base_passwd: password2
73 pam_login_attribute: "loginattrstring2"
74 nss_skipmembers: false
75 idle_timelimit: 20
76 vrf: '{{ vrf2 }}'
77 ssl: "off"
78 servers:
79 - address: 89.0.142.85
80 map:
81 map_remote_groups_to_sonic_roles:
82 - remote_group: "user1"
83 sonic_roles:
84 - secadmin
85 - admin
86 - name: sudo
87 bindpw:
88 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
89 encrypted: true
90 base: "admin"
91 binddn: "CN=example.com"
92 bind_timelimit: 5
93 sudoers_search_filter: "filter1"
94 - name: test_case_04
95 description: Change nss and pam LDAP configurations and add global sonic role
96 state: merged
97 input:
98 - name: nss
99 binddn: "CN=example.com"
100 idle_timelimit: 20
101 nss_base_netgroup: "group2"
102 nss_base_sudoers: "sudo1"
103 scope: sub
104 - name: pam
105 bindpw:
106 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
107 encrypted: true
108 base: "admin"
109 binddn: "CN=example.com"
110 retry: 3
111 scope: one
112 - name: global
113 security_profile: '{{ secprofile }}'
114 map:
115 map_remote_groups_to_sonic_roles:
116 - remote_group: "user1"
117 sonic_roles:
118 - secadmin
119 - operator
120 - name: test_case_del_01
121 description: Delete global and pam LDAP configurations
122 state: deleted
123 input:
124 - name: global
125 security_profile: '{{ secprofile }}'
126 vrf: '{{ vrf2 }}'
127 map:
128 map_remote_groups_to_sonic_roles:
129 - remote_group: "user1"
130 sonic_roles:
131 - secadmin
132 nss_base_passwd: password2
133 servers:
134 - address: 89.0.142.86
135 - address: 244.178.44.111
136 - name: pam
137 bindpw:
138 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
139 encrypted: true
140 base: admin
141 binddn: "CN=example.com"
142 retry: 3
143 scope: one
144 - name: test_case_del_02
145 description: Delete entire nss and sudo configurations
146 state: deleted
147 input:
148 - name: nss
149 - name: sudo
150 - name: test_case_del_03
151 description: Delete entire global LDAP configurations
152 state: deleted
153 input:
154 - name: global
155 - name: test_case_05
156 description: Adding LDAP configurations
157 state: merged
158 input:
159 - name: global
160 servers:
161 - address: 89.0.142.86
162 ssl: 'off'
163 - address: 244.178.44.111
164 ssl: 'off'
165 priority: 10
166 bindpw:
167 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
168 encrypted: true
169 map:
170 override_attribute:
171 - from: "attr1"
172 to: "attr2"
173 - from: "attr3"
174 to: "attr4"
175 attribute:
176 - from: "attr1"
177 to: "attr3"
178 - name: nss
179 nss_base_netgroup: "group2"
180 binddn: "CN=example.com"
181 idle_timelimit: 20
182 timelimit: 15
183 scope: "sub"
184 nss_base_sudoers: "sudo1"
185 - name: test_case_replace_01
186 description: Replace global and sudo configurations
187 state: replaced
188 input:
189 - name: global
190 bindpw:
191 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
192 encrypted: true
193 port: 390
194 version: 2
195 servers:
196 - address: 89.0.142.85
197 priority: 10
198 port: 1550
199 ssl: 'start_tls'
200 binddn: "CN=example.com"
201 source_interface: "{{ interface5 }}"
202 security_profile: '{{ secprofile }}'
203 map:
204 default_attribute:
205 - from: "attr1"
206 to: "attr2"
207 - from: "attr3"
208 to: "attr4"
209 objectclass:
210 - from: "attr1"
211 to: "attr3"
212 map_remote_groups_to_sonic_roles:
213 - remote_group: "user1"
214 sonic_roles:
215 - secadmin
216 - admin
217 - remote_group: "user2"
218 sonic_roles:
219 - secadmin
220 - remote_group: "user3"
221 sonic_roles:
222 - secadmin
223 - admin
224 - operator
225 pam_login_attribute: "loginattrstring2"
226 nss_skipmembers: false
227 ssl: "off"
228 - name: sudo
229 bindpw:
230 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
231 encrypted: true
232 base: "base_name"
233 sudoers_base: "auto"
234 sudoers_search_filter: "filter1"
235 timelimit: 10
236 version: 3
237 binddn: "CN=example.com"
238 bind_timelimit: 5
239 - name: test_case_replace_02
240 description: Replace LDAP configurations for sonic roles and server
241 state: replaced
242 input:
243 - name: global
244 servers:
245 - address: 89.0.142.85
246 priority: 10
247 map:
248 map_remote_groups_to_sonic_roles:
249 - remote_group: "user1"
250 sonic_roles:
251 - secadmin
252 - admin
253 - remote_group: "user2"
254 sonic_roles:
255 - secadmin
256 - admin
257 - remote_group: "user3"
258 sonic_roles:
259 - secadmin
260 - remote_group: "user4"
261 sonic_roles:
262 - operator
263 - name: test_case_overridden_01
264 description: Override LDAP configurations
265 state: overridden
266 input:
267 - name: global
268 security_profile: '{{ secprofile }}'
269 servers:
270 - address: 89.0.142.85
271 ssl: 'off'
272 - address: 244.178.44.111
273 ssl: 'off'
274 priority: 10
275 bindpw:
276 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
277 encrypted: true
278 map:
279 objectclass:
280 - from: "attr1"
281 to: "attr2"
282 - from: "attr3"
283 to: "attr4"
284 - name: test_case_overridden_02
285 description: Override LDAP configurations with LDAP configurations
286 state: overridden
287 input:
288 - name: global
289 servers:
290 - address: 89.0.142.85
291 ssl: 'off'
292 - address: 244.178.44.111
293 ssl: 'off'
294 priority: 10
295 bindpw:
296 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
297 encrypted: true
298 map:
299 objectclass:
300 - from: "attr1"
301 to: "attr2"
302 - from: "attr3"
303 to: "attr4"
304 - name: nss
305 binddn: "CN=example.com"
306 idle_timelimit: 20
307 nss_base_netgroup: "group2"
308 nss_base_sudoers: "sudo1"
309 scope: sub
310 - name: pam
311 bindpw:
312 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
313 encrypted: true
314 base: "admin"
315 binddn: "CN=example.com"
316 retry: 3
317 scope: one
318 - name: sudo
319 bindpw:
320 pwd: "U2FsdGVkX19eY7P3qRyyjaFsQgjoSQE71IX6IeBRios="
321 encrypted: true
322 base: "base_name"
323 sudoers_base: "auto"
324 sudoers_search_filter: "filter1"
325 timelimit: 10
326 version: 2
327 - name: test_case_delete_all
328 description: Delete all LDAP configurations
329 state: deleted
330 input:
331 []