summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoni Segura Puimedon <celebdor@gmail.com>2017-08-29 12:38:14 +0200
committerAntoni Segura Puimedon <antonisp@celebdor.com>2017-12-21 17:58:46 +0100
commitb58a3cec05bc368aa4ca0b72513fa300edf70ecb (patch)
tree132fbca17b616a912ea1783612d142135c8e4212
parentcbcfd8a6d669e5b76afca79d3523bc537df804d3 (diff)
downloadopenshift-b58a3cec05bc368aa4ca0b72513fa300edf70ecb.tar.gz
openshift-b58a3cec05bc368aa4ca0b72513fa300edf70ecb.tar.bz2
openshift-b58a3cec05bc368aa4ca0b72513fa300edf70ecb.tar.xz
openshift-b58a3cec05bc368aa4ca0b72513fa300edf70ecb.zip
Make node start options configurable
Thanks to this, the node startup can be customized. Change-Id: Ifb93bf892d7de52a575b8d0231328d44f733d0aa Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
-rw-r--r--roles/openshift_node/README.md15
-rw-r--r--roles/openshift_node/tasks/config/configure-node-settings.yml2
2 files changed, 12 insertions, 5 deletions
diff --git a/roles/openshift_node/README.md b/roles/openshift_node/README.md
index 87ceb8103..c61742bc2 100644
--- a/roles/openshift_node/README.md
+++ b/roles/openshift_node/README.md
@@ -15,10 +15,17 @@ Role Variables
--------------
From this role:
-| Name | Default value | |
-|----------------------------|-----------------------|----------------------------------------------------------|
-| oreg_url | UNDEF (Optional) | Default docker registry to use |
-| oreg_url_node | UNDEF (Optional) | Default docker registry to use, specifically on the node |
+| Name | Default value | |
+|------------------------------|-----------------------|----------------------------------------------------------|
+| openshift_node_start_options | UNDEF (Optional) | Options to pass to node start cmdline |
+| oreg_url | UNDEF (Optional) | Default docker registry to use |
+| oreg_url_node | UNDEF (Optional) | Default docker registry to use, specifically on the node |
+
+openshift_node_start_options can be used for passing any start node option, e.g.:
+
+--enable=kubelet,plugins
+
+Which would have a node running without kube-proxy and dns.
Dependencies
------------
diff --git a/roles/openshift_node/tasks/config/configure-node-settings.yml b/roles/openshift_node/tasks/config/configure-node-settings.yml
index ebc1426d3..dcdbeb220 100644
--- a/roles/openshift_node/tasks/config/configure-node-settings.yml
+++ b/roles/openshift_node/tasks/config/configure-node-settings.yml
@@ -7,7 +7,7 @@
create: true
with_items:
- regex: '^OPTIONS='
- line: "OPTIONS=--loglevel={{ openshift_node_debug_level }}"
+ line: "OPTIONS=--loglevel={{ openshift_node_debug_level }} {{ openshift_node_start_options | default('') }}"
- regex: '^CONFIG_FILE='
line: "CONFIG_FILE={{ openshift.common.config_base }}/node/node-config.yaml"
- regex: '^IMAGE_VERSION='