diff options
author | Steve Milner <smilner@redhat.com> | 2017-05-09 12:34:16 -0400 |
---|---|---|
committer | Steve Milner <smilner@redhat.com> | 2017-05-09 14:49:01 -0400 |
commit | 64dd65bef17835164a535d8367fdc8c852a97293 (patch) | |
tree | 7eb75d6c3deb3483dfac946fa64befc8266805e2 /roles/openshift_node/tasks | |
parent | b7ccac941502c93e804adf5582575ea3becf1ed8 (diff) | |
download | openshift-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_node/tasks')
-rw-r--r-- | roles/openshift_node/tasks/systemd_units.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/openshift_node/tasks/systemd_units.yml b/roles/openshift_node/tasks/systemd_units.yml index 52482d09b..a0fbf7dfc 100644 --- a/roles/openshift_node/tasks/systemd_units.yml +++ b/roles/openshift_node/tasks/systemd_units.yml @@ -25,6 +25,13 @@ - openshift.common.is_containerized | bool - not openshift.common.is_node_system_container | bool +- name: Install Node service file + template: + dest: "/etc/systemd/system/{{ openshift.common.service_type }}-node.service" + src: "{{ openshift.common.service_type }}-node.service" + register: install_node_result + when: not openshift.common.is_containerized | bool + - name: Create the openvswitch service env file template: src: openvswitch.sysconfig.j2 @@ -115,6 +122,5 @@ - name: Reload systemd units command: systemctl daemon-reload - when: (openshift.common.is_containerized | bool and (install_node_result | changed or install_ovs_sysconfig | changed or install_node_dep_result | changed)) or install_oom_fix_result | changed notify: - restart node |