diff options
Diffstat (limited to 'playbooks/byo')
| -rw-r--r-- | playbooks/byo/config.yml | 4 | ||||
| -rw-r--r-- | playbooks/byo/etcd/config.yml | 7 | ||||
| l--------- | playbooks/byo/etcd/filter_plugins | 1 | ||||
| l--------- | playbooks/byo/etcd/roles | 1 | ||||
| -rw-r--r-- | playbooks/byo/openshift-etcd/config.yml | 20 | ||||
| l--------- | playbooks/byo/openshift-etcd/filter_plugins | 1 | ||||
| l--------- | playbooks/byo/openshift-etcd/roles | 1 | 
7 files changed, 35 insertions, 0 deletions
| diff --git a/playbooks/byo/config.yml b/playbooks/byo/config.yml index e059514db..092eb9978 100644 --- a/playbooks/byo/config.yml +++ b/playbooks/byo/config.yml @@ -3,6 +3,10 @@    include: openshift-master/config.yml    when: groups.masters is defined and groups.masters +- name: Run the openshift-etcd playbook +  include: openshift-etcd/config.yml +  when: groups.etcd is defined and groups.etcd +  - name: Run the openshift-node config playbook    include: openshift-node/config.yml    when: groups.nodes is defined and groups.nodes and groups.masters is defined and groups.masters diff --git a/playbooks/byo/etcd/config.yml b/playbooks/byo/etcd/config.yml new file mode 100644 index 000000000..0c96b2541 --- /dev/null +++ b/playbooks/byo/etcd/config.yml @@ -0,0 +1,7 @@ +## deploys a simple etcd cluster, this cluster does not provide client side ssl +## and cannot be used directly for openshift. This should only be used for testing. +--- +- name: Configure etcd +  hosts: etcd +  roles: +  - etcd diff --git a/playbooks/byo/etcd/filter_plugins b/playbooks/byo/etcd/filter_plugins new file mode 120000 index 000000000..b0b7a3414 --- /dev/null +++ b/playbooks/byo/etcd/filter_plugins @@ -0,0 +1 @@ +../../../filter_plugins/
\ No newline at end of file diff --git a/playbooks/byo/etcd/roles b/playbooks/byo/etcd/roles new file mode 120000 index 000000000..e2b799b9d --- /dev/null +++ b/playbooks/byo/etcd/roles @@ -0,0 +1 @@ +../../../roles/
\ No newline at end of file diff --git a/playbooks/byo/openshift-etcd/config.yml b/playbooks/byo/openshift-etcd/config.yml new file mode 100644 index 000000000..381f139de --- /dev/null +++ b/playbooks/byo/openshift-etcd/config.yml @@ -0,0 +1,20 @@ +--- +- name: Populate oo_etcd_hosts_to_config and oo_first_master host groups +  hosts: localhost +  gather_facts: no +  tasks: +  - name: Evaluate oo_etcd_hosts_to_config +    add_host: +      name: "{{ item }}" +      groups: oo_etcd_hosts_to_config +    with_items: groups.etcd +  - name: Evaluate oo_first_master +    add_host: +      name: "{{ item }}" +      groups: oo_first_master +    with_items: groups.masters.0 + + +- include: ../../common/openshift-etcd/config.yml +  vars: +    openshift_first_master: "{{ groups.masters.0 }}" diff --git a/playbooks/byo/openshift-etcd/filter_plugins b/playbooks/byo/openshift-etcd/filter_plugins new file mode 120000 index 000000000..99a95e4ca --- /dev/null +++ b/playbooks/byo/openshift-etcd/filter_plugins @@ -0,0 +1 @@ +../../../filter_plugins
\ No newline at end of file diff --git a/playbooks/byo/openshift-etcd/roles b/playbooks/byo/openshift-etcd/roles new file mode 120000 index 000000000..20c4c58cf --- /dev/null +++ b/playbooks/byo/openshift-etcd/roles @@ -0,0 +1 @@ +../../../roles
\ No newline at end of file | 
