Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14 from Diesel-Net/development
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
tomdaley92 authored Aug 27, 2022
2 parents 0e7a780 + 03c0bed commit 2f91160
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .ansible/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
- include_role:
name: docker
tasks_from: stack_teardown
when: clean_install | default(false)
when: version == "dev"

- name: 'Wipe all persistent data'
file:
state: absent
path: '{{ app_dir }}'
become: yes
when: clean_install | default(false)
when: version == "dev"

- include_role:
name: application
Expand All @@ -24,6 +24,7 @@
- include_role:
name: application
tasks_from: make_data_dir
when: version == "dev"

- name: Ensure {{ config_dir }}/certs exists
file:
Expand All @@ -34,11 +35,13 @@
file:
state: directory
path: '{{ data_dir }}/slapd'
when: version == "dev"

- name: Ensure {{ data_dir }}/ldap exists
file:
state: directory
path: '{{ data_dir }}/ldap'
when: version == "dev"

- name: 'Loosen config dir permissions'
file:
Expand All @@ -51,6 +54,7 @@
state: directory
path: '{{ data_dir }}'
mode: 'u=rwx,g=rwx,o=rwx'
when: version == "dev"

- name: 'Copy dhparam.pem to {{ config_dir }}/certs/custom_dhparam.pem'
copy:
Expand Down
2 changes: 1 addition & 1 deletion .ansible/templates/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- {{ config_dir }}/certs/:/container/service/slapd/assets/certs/

{% if nfs_host is defined %}
- slapd-config:/etc/ldap/slapd.d # this should be treated as data !!!
- slapd-config:/etc/ldap/slapd.d
- ldap-database:/var/lib/ldap
{% else %}
- {{ data_dir }}/slapd:/etc/ldap/slapd.d # this should be treated as data !!!
Expand Down

0 comments on commit 2f91160

Please sign in to comment.