Skip to content

Commit

Permalink
Disable old openshift-master.service on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Aug 8, 2017
1 parent dcc8a41 commit b3c610d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@

- include_vars: ../../../../roles/openshift_master/vars/main.yml

- name: Remove any legacy systemd units
include: ../../../../roles/openshift_master/tasks/clean_systemd_units.yml

- name: Update systemd units
include: ../../../../roles/openshift_master/tasks/systemd_units.yml

Expand Down
5 changes: 5 additions & 0 deletions roles/openshift_master/tasks/clean_systemd_units.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

- name: Disable master service
systemd: name={{ openshift.common.service_type }}-master state=stopped enabled=no masked=yes
ignore_errors: true
3 changes: 3 additions & 0 deletions roles/openshift_master/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
local_facts:
no_proxy_etcd_host_ips: "{{ openshift_no_proxy_etcd_host_ips }}"

- name: Remove the legacy master service if it exists
include: clean_systemd_units.yml

- name: Install the systemd units
include: systemd_units.yml

Expand Down

0 comments on commit b3c610d

Please sign in to comment.