Skip to content

Commit

Permalink
Add debops.persistent_paths role and its corresponding playbook
Browse files Browse the repository at this point in the history
Related to: debops#333
  • Loading branch information
ypid committed Feb 2, 2017
1 parent 7c64a14 commit 05f552f
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Added
- Add ``debops.cron`` role and its playbook, and include it in the
``common.yml`` playbook. [drybjed_]

- Add ``debops.persistent_paths`` role and its corresponding playbook. [ypid_]

Changed
~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions galaxy/requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ debops.ntp,testing
debops.nullmailer,testing
debops.openvz,testing
debops.owncloud,testing
debops.persistent_paths,testing
debops.php,testing
debops.php5,testing
debops.phpipam,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 @@ -208,6 +208,9 @@
- src: debops.owncloud
version: testing

- src: debops.persistent_paths
version: testing

- src: debops.php
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 @@ -68,6 +68,7 @@ debops.ntp
debops.nullmailer
debops.openvz
debops.owncloud
debops.persistent_paths
debops.php
debops.php5
debops.phpipam
Expand Down
2 changes: 2 additions & 0 deletions galaxy/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@

- src: debops.owncloud

- src: debops.persistent_paths

- src: debops.php

- src: debops.php5
Expand Down
14 changes: 14 additions & 0 deletions playbooks/service/persistent_paths.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---

- name: Ensure paths are stored on persistent storage
hosts: [ 'debops_service_persistent_paths' ]
become: True

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

roles:

- role: debops.persistent_paths
tags: [ 'role::persistent_paths' ]
2 changes: 1 addition & 1 deletion playbooks/sys/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

- include: nfs.yml


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

0 comments on commit 05f552f

Please sign in to comment.