Skip to content

Commit

Permalink
Merge pull request #41 from pneerincx/develop
Browse files Browse the repository at this point in the history
Develop Friday
  • Loading branch information
erijpkema authored Jan 25, 2019
2 parents 902f7f9 + a2821de commit e8b8e65
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 24 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ These roles install various docker images built and hosted by RuG webhosting. Th
#### Deployment of OpenStack
The steps below describe how to get from machines with a bare ubuntu 16.04 installed to a running openstack installation.

#### Steps to upgrade the OpenStack cluster

### 3. Steps to deploy HPC compute cluster on top of OpenStack cluster
---

0. Clone this repo.
Expand Down Expand Up @@ -178,7 +181,3 @@ The steps below describe how to get from machines with a bare ubuntu 16.04 insta
```
7. verify operation.
#### Steps to upgrade openstack cluster.
### 3. Steps to install Compute cluster on top of openstack cluster.
7 changes: 7 additions & 0 deletions roles/ldap/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
firewall_allowed_tcp_ports:
- "22"
ldap_port: 389
ldaps_port: 636
uri_ldap: ''
uri_ldaps: ''
ldap_base: ''
ldap_binddn: ''
...
1 change: 1 addition & 0 deletions roles/ldap/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dependencies:
vars:
firewall_allowed_tcp_ports:
- "22"
...
31 changes: 18 additions & 13 deletions roles/ldap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,44 @@
- pam_script
- oddjob-mkhomedir

- name: install nslcd.conf
- name: Deploy nslcd.conf
template:
src: nslcd.conf
dest: /etc/nslcd.conf
owner: root
group: root
mode: '0600'

- name: install ldap.conf
- name: Deploy ldap.conf
template:
src: ldap.conf
dest: /etc/ssh/ldap.conf
owner: root
group: root
mode: '0644'

- name: install nsswitch.conf
- name: Deploy nsswitch.conf
copy:
src: nsswitch.conf
dest: /etc/nsswitch.conf
owner: root
group: root
mode: '0644'

- file:
- name: Create /etc/pam-script.d/ dir.
file:
name: /etc/pam-script.d
state: directory

- name: install login_checks.sh
- name: Install login_checks.sh script.
copy:
src: login_checks.sh
dest: /etc/pam-script.d/login_checks.sh
owner: root
group: root
mode: '0755'

- name: set symlinks to pam_script
- name: Enable pam_script.
file:
src: pam_script
dest: "/etc/{{ item }}"
Expand All @@ -61,7 +62,7 @@
- pam_script_ses_close
- pam_script_ses_open

- name: set symlinks to login_checks.sh
- name: Enable login_checks.sh script for ses_open.
file:
src: login_checks.sh
dest: "/etc/pam-script.d/{{ item }}"
Expand All @@ -71,34 +72,38 @@
with_items:
- login_checks.sh_ses_open

- copy:
- name: Deploy password-auth-ac for PAM.
copy:
src: password-auth-ac
dest: /etc/pam.d/password-auth-ac
owner: root
group: root
mode: '0600'

- name: set sshd config
- name: Deploy sshd config.
template:
src: templates/sshd_config
dest: /etc/ssh/sshd_config

- name: enable services
- name: Enable services.
systemd:
name: "{{ item }}"
enabled: yes
with_items:
- nslcd
- dbus.service
- oddjobd.service

- name: authconfig magic
- name: Run authconfig update.
shell: "authconfig --enablemkhomedir --update"

- name: restart daemons
- name: Reload services.
service:
name: "{{item}}"
state: restarted
state: reloaded
with_items:
- nslcd
- dbus
- oddjobd
- sshd
...
7 changes: 0 additions & 7 deletions roles/ldap/vars/main.yml

This file was deleted.

0 comments on commit e8b8e65

Please sign in to comment.