Skip to content

Commit

Permalink
Add 'debops.nfs_server' role, reorder NFS plays
Browse files Browse the repository at this point in the history
  • Loading branch information
drybjed committed Apr 6, 2017
1 parent 0377416 commit 12a35e7
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ Added

- Add ``flattened`` Jinja filter to debops__tpl_macros.js_. [ypid_]

- Add the ``debops.nfs_server`` Ansible role with a corresponding playbook.
[drybjed_]

Changed
~~~~~~~

Expand Down Expand Up @@ -147,6 +150,9 @@ Changed

- Update the debops.gitlab_ playbook to use role dependencies. [drybjed_]

- The order of the NFS server/client roles has been moved to be earlier in the
main playbook to allow for mounting of the NFS shares early. [drybjed_]

Deprecated
~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions galaxy/requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ debops.monkeysphere,testing
debops.mysql,testing
debops.netbox,testing
debops.nfs,testing
debops.nfs_server,testing
debops.nginx,testing
debops.nodejs,testing
debops.ntp,testing
Expand Down
3 changes: 3 additions & 0 deletions galaxy/requirements-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
- src: debops.nfs
version: testing

- src: debops.nfs_server
version: testing

- src: debops.nginx
version: testing

Expand Down
1 change: 1 addition & 0 deletions galaxy/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ debops.monkeysphere
debops.mysql
debops.netbox
debops.nfs
debops.nfs_server
debops.nginx
debops.nodejs
debops.ntp
Expand Down
2 changes: 2 additions & 0 deletions galaxy/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@

- src: debops.nfs

- src: debops.nfs_server

- src: debops.nginx

- src: debops.nodejs
Expand Down
5 changes: 2 additions & 3 deletions playbooks/service/nfs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- name: Manage NFS service
hosts: [ 'debops_service_nfs', 'debops_nfs' ]
- name: Manage NFS shares
hosts: [ 'debops_service_nfs' ]
become: True

environment: '{{ inventory__environment | d({})
Expand All @@ -12,4 +12,3 @@

- role: debops.nfs
tags: [ 'role::nfs' ]

29 changes: 29 additions & 0 deletions playbooks/service/nfs_server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---

- name: Configure NFS Server
hosts: [ 'debops_service_nfs_server' ]
become: True

environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'

roles:

- role: debops.etc_services
tags: [ 'role::etc_services', 'role::ferm' ]
etc_services__dependent_list:
- '{{ nfs_server__etc_services__dependent_list }}'

- role: debops.ferm
tags: [ 'role::ferm' ]
ferm__dependent_rules:
- '{{ nfs_server__ferm__dependent_rules }}'

- role: debops.tcpwrappers
tags: [ 'role::tcpwrappers' ]
tcpwrappers__dependent_allow:
- '{{ nfs_server__tcpwrappers__dependent_allow }}'

- role: debops.nfs_server
tags: [ 'role::nfs_server' ]
6 changes: 4 additions & 2 deletions playbooks/sys/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- include: swapfile.yml

- include: nfs_server.yml

- include: nfs.yml

- include: gitusers.yml

- include: sftpusers.yml
Expand All @@ -14,6 +18,4 @@

- include: cryptsetup.yml

- include: nfs.yml

- include: persistent_paths.yml
1 change: 1 addition & 0 deletions playbooks/sys/nfs_server.yml

0 comments on commit 12a35e7

Please sign in to comment.