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-cluster | |
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-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/config.yml | 2 | ||||
-rw-r--r-- | playbooks/common/openshift-cluster/evaluate_groups.yml | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/config.yml b/playbooks/common/openshift-cluster/config.yml index 482fa8441..a2a2629a7 100644 --- a/playbooks/common/openshift-cluster/config.yml +++ b/playbooks/common/openshift-cluster/config.yml @@ -3,6 +3,8 @@ - include: ../openshift-etcd/config.yml +- include: ../openshift-nfs/config.yml + - include: ../openshift-master/config.yml - include: ../openshift-node/config.yml diff --git a/playbooks/common/openshift-cluster/evaluate_groups.yml b/playbooks/common/openshift-cluster/evaluate_groups.yml index 6343a2567..db7105ed5 100644 --- a/playbooks/common/openshift-cluster/evaluate_groups.yml +++ b/playbooks/common/openshift-cluster/evaluate_groups.yml @@ -21,6 +21,14 @@ msg: This playbook requires g_lb_hosts to be set when: g_lb_hosts is not defined + - fail: + msg: This playbook requires g_nfs_hosts to be set + when: g_nfs_hosts is not defined + + - fail: + msg: The nfs group must be limited to one host + when: (groups[g_nfs_hosts] | default([])) | length > 1 + - name: Evaluate oo_etcd_to_config add_host: name: "{{ item }}" @@ -81,3 +89,11 @@ ansible_ssh_user: "{{ g_ssh_user | default(omit) }}" ansible_sudo: "{{ g_sudo | default(omit) }}" with_items: "{{ g_lb_hosts | default([]) }}" + + - name: Evaluate oo_nfs_to_config + add_host: + name: "{{ item }}" + groups: oo_nfs_to_config + ansible_ssh_user: "{{ g_ssh_user | default(omit) }}" + ansible_sudo: "{{ g_sudo | default(omit) }}" + with_items: "{{ g_nfs_hosts | default([]) }}" |