From 05f552fa94ef5c0bab93c2cf6bfaeeb53f802774 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Wed, 1 Feb 2017 23:26:24 +0100 Subject: [PATCH] Add `debops.persistent_paths` role and its corresponding playbook Related to: https://github.com/debops/debops-playbooks/issues/333 --- CHANGES.rst | 2 ++ galaxy/requirements-testing.txt | 1 + galaxy/requirements-testing.yml | 3 +++ galaxy/requirements.txt | 1 + galaxy/requirements.yml | 2 ++ playbooks/service/persistent_paths.yml | 14 ++++++++++++++ playbooks/sys/all.yml | 2 +- playbooks/sys/persistent_paths.yml | 1 + 8 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 playbooks/service/persistent_paths.yml create mode 120000 playbooks/sys/persistent_paths.yml diff --git a/CHANGES.rst b/CHANGES.rst index 2c1c8c5..befeb51 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 ~~~~~~~ diff --git a/galaxy/requirements-testing.txt b/galaxy/requirements-testing.txt index 6e158dc..157d380 100644 --- a/galaxy/requirements-testing.txt +++ b/galaxy/requirements-testing.txt @@ -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 diff --git a/galaxy/requirements-testing.yml b/galaxy/requirements-testing.yml index feb8ca2..09b402f 100644 --- a/galaxy/requirements-testing.yml +++ b/galaxy/requirements-testing.yml @@ -208,6 +208,9 @@ - src: debops.owncloud version: testing +- src: debops.persistent_paths + version: testing + - src: debops.php version: testing diff --git a/galaxy/requirements.txt b/galaxy/requirements.txt index 673e8e4..3379a1e 100644 --- a/galaxy/requirements.txt +++ b/galaxy/requirements.txt @@ -68,6 +68,7 @@ debops.ntp debops.nullmailer debops.openvz debops.owncloud +debops.persistent_paths debops.php debops.php5 debops.phpipam diff --git a/galaxy/requirements.yml b/galaxy/requirements.yml index 94d8c70..db9e9b2 100644 --- a/galaxy/requirements.yml +++ b/galaxy/requirements.yml @@ -138,6 +138,8 @@ - src: debops.owncloud +- src: debops.persistent_paths + - src: debops.php - src: debops.php5 diff --git a/playbooks/service/persistent_paths.yml b/playbooks/service/persistent_paths.yml new file mode 100644 index 0000000..e942831 --- /dev/null +++ b/playbooks/service/persistent_paths.yml @@ -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' ] diff --git a/playbooks/sys/all.yml b/playbooks/sys/all.yml index d3e85af..a50d598 100644 --- a/playbooks/sys/all.yml +++ b/playbooks/sys/all.yml @@ -16,4 +16,4 @@ - include: nfs.yml - +- include: persistent_paths.yml diff --git a/playbooks/sys/persistent_paths.yml b/playbooks/sys/persistent_paths.yml new file mode 120000 index 0000000..8ededba --- /dev/null +++ b/playbooks/sys/persistent_paths.yml @@ -0,0 +1 @@ +../service/persistent_paths.yml \ No newline at end of file