summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks/config/configure-node-settings.yml
diff options
context:
space:
mode:
authorJan Chaloupka <jchaloup@redhat.com>2017-07-25 14:50:53 +0200
committerJan Chaloupka <jchaloup@redhat.com>2017-07-28 09:44:18 +0200
commit88238aa357e0115452b290d9b9e854e15dfcaaf6 (patch)
tree47307f9f33ec5ca882b8aa05cc218e13a544943d /roles/openshift_node/tasks/config/configure-node-settings.yml
parent4a442d87006bdd535eb5035d122a6b5226555da2 (diff)
downloadopenshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.gz
openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.bz2
openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.tar.xz
openshift-88238aa357e0115452b290d9b9e854e15dfcaaf6.zip
move common tasks to a single file included by both systemd_units.yml
Diffstat (limited to 'roles/openshift_node/tasks/config/configure-node-settings.yml')
-rw-r--r--roles/openshift_node/tasks/config/configure-node-settings.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/config/configure-node-settings.yml b/roles/openshift_node/tasks/config/configure-node-settings.yml
new file mode 100644
index 000000000..1186062eb
--- /dev/null
+++ b/roles/openshift_node/tasks/config/configure-node-settings.yml
@@ -0,0 +1,16 @@
+---
+- name: Configure Node settings
+ lineinfile:
+ dest: /etc/sysconfig/{{ openshift.common.service_type }}-node
+ regexp: "{{ item.regex }}"
+ line: "{{ item.line }}"
+ create: true
+ with_items:
+ - regex: '^OPTIONS='
+ line: "OPTIONS=--loglevel={{ openshift.node.debug_level | default(2) }}"
+ - regex: '^CONFIG_FILE='
+ line: "CONFIG_FILE={{ openshift.common.config_base }}/node/node-config.yaml"
+ - regex: '^IMAGE_VERSION='
+ line: "IMAGE_VERSION={{ openshift_image_tag }}"
+ notify:
+ - restart node