diff options
author | Andrew Butcher <abutcher@redhat.com> | 2015-11-18 14:34:47 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2015-12-15 15:55:20 -0500 |
commit | 0c18c742c60e5c4acd609d682caae7f7ce8840cd (patch) | |
tree | 2ec429223eee1ce0e35b99a1a5ac328a9f07e453 /playbooks/common/openshift-nfs | |
parent | ebc61582e7577ae09b856ff95a8aaef740057234 (diff) | |
download | openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.gz openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.bz2 openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.tar.xz openshift-0c18c742c60e5c4acd609d682caae7f7ce8840cd.zip |
Create nfs host group with registry volume attachment.
Diffstat (limited to 'playbooks/common/openshift-nfs')
-rw-r--r-- | playbooks/common/openshift-nfs/config.yml | 5 | ||||
l--------- | playbooks/common/openshift-nfs/filter_plugins | 1 | ||||
l--------- | playbooks/common/openshift-nfs/lookup_plugins | 1 | ||||
l--------- | playbooks/common/openshift-nfs/roles | 1 | ||||
-rw-r--r-- | playbooks/common/openshift-nfs/service.yml | 18 |
5 files changed, 26 insertions, 0 deletions
diff --git a/playbooks/common/openshift-nfs/config.yml b/playbooks/common/openshift-nfs/config.yml new file mode 100644 index 000000000..e3f5c17ca --- /dev/null +++ b/playbooks/common/openshift-nfs/config.yml @@ -0,0 +1,5 @@ +--- +- name: Configure nfs hosts + hosts: oo_nfs_to_config + roles: + - role: openshift_storage_nfs diff --git a/playbooks/common/openshift-nfs/filter_plugins b/playbooks/common/openshift-nfs/filter_plugins new file mode 120000 index 000000000..99a95e4ca --- /dev/null +++ b/playbooks/common/openshift-nfs/filter_plugins @@ -0,0 +1 @@ +../../../filter_plugins
\ No newline at end of file diff --git a/playbooks/common/openshift-nfs/lookup_plugins b/playbooks/common/openshift-nfs/lookup_plugins new file mode 120000 index 000000000..ac79701db --- /dev/null +++ b/playbooks/common/openshift-nfs/lookup_plugins @@ -0,0 +1 @@ +../../../lookup_plugins
\ No newline at end of file diff --git a/playbooks/common/openshift-nfs/roles b/playbooks/common/openshift-nfs/roles new file mode 120000 index 000000000..e2b799b9d --- /dev/null +++ b/playbooks/common/openshift-nfs/roles @@ -0,0 +1 @@ +../../../roles/
\ No newline at end of file diff --git a/playbooks/common/openshift-nfs/service.yml b/playbooks/common/openshift-nfs/service.yml new file mode 100644 index 000000000..20c8ca248 --- /dev/null +++ b/playbooks/common/openshift-nfs/service.yml @@ -0,0 +1,18 @@ +--- +- name: Populate g_service_nfs host group if needed + hosts: localhost + gather_facts: no + tasks: + - fail: msg="new_cluster_state is required to be injected in this playbook" + when: new_cluster_state is not defined + + - name: Evaluate g_service_nfs + add_host: name={{ item }} groups=g_service_nfs + with_items: oo_host_group_exp | default([]) + +- name: Change state on nfs instance(s) + hosts: g_service_nfs + connection: ssh + gather_facts: no + tasks: + - service: name=nfs-server state="{{ new_cluster_state }}" |