diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2017-02-10 15:24:53 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2017-02-10 17:23:43 +0100 |
commit | 4c47f15b8a1328528cd6365b2d05578ab7fc1439 (patch) | |
tree | 3f65c33a3ca55743fa2225891006fcd64fea1420 /roles/openshift_master/tasks/systemd_units.yml | |
parent | 094fd21ceab111900c518dfad874b434c81e62ee (diff) | |
download | openshift-4c47f15b8a1328528cd6365b2d05578ab7fc1439.tar.gz openshift-4c47f15b8a1328528cd6365b2d05578ab7fc1439.tar.bz2 openshift-4c47f15b8a1328528cd6365b2d05578ab7fc1439.tar.xz openshift-4c47f15b8a1328528cd6365b2d05578ab7fc1439.zip |
master: support HA deployments with system containers
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'roles/openshift_master/tasks/systemd_units.yml')
-rw-r--r-- | roles/openshift_master/tasks/systemd_units.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/openshift_master/tasks/systemd_units.yml b/roles/openshift_master/tasks/systemd_units.yml index 4ab98cbbb..506c8b129 100644 --- a/roles/openshift_master/tasks/systemd_units.yml +++ b/roles/openshift_master/tasks/systemd_units.yml @@ -27,7 +27,9 @@ template: src: "master_docker/master.docker.service.j2" dest: "{{ containerized_svc_dir }}/{{ openshift.common.service_type }}-master.service" - when: openshift.common.is_containerized | bool and (openshift.master.ha is not defined or not openshift.master.ha | bool and not openshift.common.is_master_system_container | bool) + when: + - openshift.common.is_containerized | bool and (openshift.master.ha is not defined or not openshift.master.ha) | bool + - not openshift.common.is_master_system_container | bool register: create_master_unit_file - command: systemctl daemon-reload @@ -37,7 +39,9 @@ template: src: "{{ ha_svc_template_path }}/atomic-openshift-master-{{ item }}.service.j2" dest: "{{ containerized_svc_dir }}/{{ openshift.common.service_type }}-master-{{ item }}.service" - when: openshift.master.ha is defined and openshift.master.ha | bool and openshift_master_cluster_method == "native" + when: + - openshift.master.ha is defined and openshift.master.ha | bool and openshift_master_cluster_method == "native" + - not openshift.common.is_master_system_container | bool with_items: - api - controllers |