summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master/tasks
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-05-09 12:34:16 -0400
committerSteve Milner <smilner@redhat.com>2017-05-09 14:49:01 -0400
commit64dd65bef17835164a535d8367fdc8c852a97293 (patch)
tree7eb75d6c3deb3483dfac946fa64befc8266805e2 /roles/openshift_master/tasks
parentb7ccac941502c93e804adf5582575ea3becf1ed8 (diff)
downloadopenshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.gz
openshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.bz2
openshift-64dd65bef17835164a535d8367fdc8c852a97293.tar.xz
openshift-64dd65bef17835164a535d8367fdc8c852a97293.zip
Add service file templates for master and node
Adds service file templates for both maste and node. These will lay down in /etc/system/systemd to override what may already be present from a package. These instances take into account the name of the container daemon (docker or container-engine).
Diffstat (limited to 'roles/openshift_master/tasks')
-rw-r--r--roles/openshift_master/tasks/systemd_units.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_master/tasks/systemd_units.yml b/roles/openshift_master/tasks/systemd_units.yml
index 58fabddeb..cfa860edf 100644
--- a/roles/openshift_master/tasks/systemd_units.yml
+++ b/roles/openshift_master/tasks/systemd_units.yml
@@ -32,6 +32,15 @@
- not openshift.common.is_master_system_container | bool
register: create_master_unit_file
+- name: Install Master service file
+ template:
+ dest: "/etc/systemd/system/{{ openshift.common.service_type }}-master.service"
+ src: "{{ openshift.common.service_type }}-master.service"
+ register: create_master_unit_file
+ when:
+ - not openshift.common.is_containerized | bool
+ - (openshift.master.ha is not defined or not openshift.master.ha) | bool
+
- command: systemctl daemon-reload
when: create_master_unit_file | changed