Skip to content

Commit f4915cb

Browse files
author
Anton Ustyuzhanin
committed
Tests: move ldap server out
1 parent 8ce8edb commit f4915cb

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

molecule/default/prepare.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,7 @@
99
Debian: openssh-client
1010
RedHat: openssh-clients
1111

12-
roles:
13-
- role: openldap
14-
openldap_server_domain_name: example.com
15-
openldap_server_rootpw: s3cr3t
16-
openldap_server_enable_ssl: false
17-
1812
tasks:
19-
- name: install python-ldap
20-
package:
21-
name: python-ldap
22-
- name: Make sure we have two test users
23-
ldap_entry:
24-
bind_dn: cn=Manager,dc=example,dc=com
25-
bind_pw: s3cr3t
26-
dn: 'uid={{ item.uid }},dc=example,dc=com'
27-
objectClass:
28-
- top
29-
- person
30-
- posixAccount
31-
- inetOrgPerson
32-
- organizationalPerson
33-
- ldapPublicKey
34-
attributes:
35-
uid: "{{ item.uid }}"
36-
uidNumber: "{{ item.uidNumber }}"
37-
givenName: "{{ item.name }}"
38-
sn: "{{ item.name }}"
39-
cn: "{{ item.name }}"
40-
loginShell: /bin/bash
41-
homeDirectory: "/home/{{ item.uid }}"
42-
sshPublicKey: "{{ item.sshPublicKey }}"
43-
gidNumber: "{{ item.uidNumber }}"
44-
with_items:
45-
- name: Test
46-
uid: test
47-
uidNumber: 5000
48-
sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYaGyXcqdQUIxjPr3eqXro9X/2LrLH2o+OrFeGRB2u3WxigroynxD8vLjtG6qyYYtgnvR9+2usVhbNNS3QdF3G5wenCR4Zpk6VIYofQrBYmrzJG9Bsig3G4SgnGF2x4KimupjCdD4+1S9OMF/4GzQZdaLl2HkSTYE+6430FbSD8i3IdpbRI526X8q4njrTHgIYUtAVFTPSudZ/3fIzFpfNlWq5wy1CXCGc7aqmHECQzareeoAM5NfgrUkw7TFrKP/zelDkqpJ6pwYTWg2VZYmoXmh2o+ttWFatGzJPUoeU/r+SjMn4YvMunT+L6NIrbJQkXwB9i3upMx2bQcuPl0cl test-key
49-
- name: Filtered
50-
uid: filtered-test
51-
uidNumber: 5001
52-
sshPublicKey: ''
5313
- name: create /root/.ssh dir
5414
file:
5515
path: /root/.ssh

0 commit comments

Comments
 (0)