Skip to content
Snippets Groups Projects
Commit 45f7eea9 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'cleanup_openLdapClient' into minor_tweaks

parents 83f79a84 04fe9032
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
lineinfile: lineinfile:
args: args:
dest: /etc/karaage/ldap_schemas.py dest: /etc/karaage/ldap_schemas.py
regexp: "from placard.schemas.pwdpolicy import pwdPolicyMixin" regexp: 'from placard.schemas.pwdpolicy import pwdPolicyMixin'
line: "from placard.schemas.defaultUnlocked import defaultUnlockedMixin" line: "from placard.schemas.defaultUnlocked import defaultUnlockedMixin"
backrefs: yes backrefs: yes
sudo: true sudo: true
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
lineinfile: lineinfile:
args: args:
dest: /etc/karaage/ldap_schemas.py dest: /etc/karaage/ldap_schemas.py
regexp: " mixin_list = [ common.personMixin, pwdPolicyMixin, kPersonMixin ]" regexp: ' mixin_list = \[ common.personMixin, pwdPolicyMixin, kPersonMixin \]'
line: " mixin_list = [ common.personMixin, defaultUnlockedMixin, kPersonMixin ]" line: " mixin_list = [ common.personMixin, defaultUnlockedMixin, kPersonMixin ]"
backrefs: yes backrefs: yes
sudo: true sudo: true
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
lineinfile: lineinfile:
args: args:
dest: /etc/karaage/ldap_schemas.py dest: /etc/karaage/ldap_schemas.py
regexp: "class person(rfc.person, rfc.organizationalPerson, rfc.inetOrgPerson, rfc.pwdPolicy, common.baseMixin):" regexp: 'class person\(rfc.person, rfc.organizationalPerson, rfc.inetOrgPerson, rfc.pwdPolicy, common.baseMixin\):'
line: class person(rfc.person, rfc.organizationalPerson, rfc.inetOrgPerson, common.baseMixin):" line: "class person(rfc.person, rfc.organizationalPerson, rfc.inetOrgPerson, common.baseMixin):"
backrefs: yes backrefs: yes
sudo: true sudo: true
--- ---
- name: restart authentication
shell: authconfig --updateall
when: nfs_type == "nfs4"
sudo: true
- name: restart idmap - name: restart idmap
service: name={{ item }} state=restarted service: name={{ item }} state=restarted
with_items: with_items:
......
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
- nsswitch.conf - nsswitch.conf
sudo: true sudo: true
- name: "Copy the CA cert"
copy: src={{ ldapCaCertSrc }} dest={{ ldapCaCertFile }} owner=root mode=644
sudo: true
when: ldapCaCertSrc is defined
- name: "Copy pam config to ldap client" - name: "Copy pam config to ldap client"
template: src=system-auth-ac.j2 dest=/etc/pam.d/system-auth-ac template: src=system-auth-ac.j2 dest=/etc/pam.d/system-auth-ac
sudo: true sudo: true
......
...@@ -54,15 +54,12 @@ ...@@ -54,15 +54,12 @@
args: args:
creates: /tmp/rpmbuild/RPMS/x86_64/slurm-{{ slurm_version }}-1.el6.x86_64.rpm creates: /tmp/rpmbuild/RPMS/x86_64/slurm-{{ slurm_version }}-1.el6.x86_64.rpm
#- name: retrieve rpms - name: retrieve rpms 1
# shell: scp -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_ssh_host }}:/tmp/rpmbuild/ /tmp shell: scp -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_ssh_host }}:/tmp/rpmbuild/ /tmp
# delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
# when: ansible_ssh_host | defined when: ansible_ssh_host is defined
# when: ansible_ssh_host | defined
# sudo: true
- name: retrieve rpms - name: retrieve rpms 2
shell: scp -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_hostname }}:/tmp/rpmbuild/ /tmp shell: scp -r {{ hostvars[ansible_hostname]['ansible_user_id'] }}@{{ ansible_hostname }}:/tmp/rpmbuild/ /tmp
delegate_to: 127.0.0.1 delegate_to: 127.0.0.1
# when: ansible_ssh_host | not defined when: ansible_ssh_host is not defined
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment