summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/tasks
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-03-01 00:50:15 -0500
committerJason DeTiberus <jdetiber@redhat.com>2015-03-02 11:05:43 -0500
commit8c88ecb54199b05549ec1d6c68938337cbb4a6c1 (patch)
treeca118e11783d4c7179f92848608d8c90693d4d4c /roles/openshift_node/tasks
parente55ef121003649cfe72bb51c6d51a492898f328a (diff)
downloadopenshift-8c88ecb54199b05549ec1d6c68938337cbb4a6c1.tar.gz
openshift-8c88ecb54199b05549ec1d6c68938337cbb4a6c1.tar.bz2
openshift-8c88ecb54199b05549ec1d6c68938337cbb4a6c1.tar.xz
openshift-8c88ecb54199b05549ec1d6c68938337cbb4a6c1.zip
openshift_node changes for register_node module
- add openshift_register_node module to openshift_node role - verifies that node isn't already registered before attempting to register it
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r--roles/openshift_node/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index b908e325b..e458f651b 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -55,3 +55,9 @@
- name: Disable openshift-node if openshift-node is managed externally
service: name=openshift-node enabled=false
when: openshift_node_manage_service_externally
+
+# TODO: expose openshift_register_node options to allow for overriding the
+# defaults.
+- name: Register node (if not already registered)
+ openshift_register_node:
+ name: "{{ openshift_hostname }}"