diff options
author | Avesh Agarwal <avagarwa@redhat.com> | 2015-06-19 14:41:10 -0400 |
---|---|---|
committer | Scott Dodson <sdodson@redhat.com> | 2015-08-26 13:22:42 -0400 |
commit | 1b3fff6248fbd6788a26ee2b6c60f7731891c0f4 (patch) | |
tree | 6e2fc801a4366bf7e8075882e90f8383a638fb74 /playbooks/common/openshift-node | |
parent | 2595194cc34db43de2d9f139ff7ed1cd41c47ab1 (diff) | |
download | openshift-1b3fff6248fbd6788a26ee2b6c60f7731891c0f4.tar.gz openshift-1b3fff6248fbd6788a26ee2b6c60f7731891c0f4.tar.bz2 openshift-1b3fff6248fbd6788a26ee2b6c60f7731891c0f4.tar.xz openshift-1b3fff6248fbd6788a26ee2b6c60f7731891c0f4.zip |
Atomic Enterprise related changes.
Diffstat (limited to 'playbooks/common/openshift-node')
-rw-r--r-- | playbooks/common/openshift-node/config.yml | 10 | ||||
-rw-r--r-- | playbooks/common/openshift-node/service.yml | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/playbooks/common/openshift-node/config.yml b/playbooks/common/openshift-node/config.yml index 705f7f223..c6d19d131 100644 --- a/playbooks/common/openshift-node/config.yml +++ b/playbooks/common/openshift-node/config.yml @@ -22,7 +22,7 @@ annotations: "{{ openshift_node_annotations | default(None) }}" - name: Check status of node certificates stat: - path: "/etc/openshift/node/{{ item }}" + path: "{{ openshift.common.config_base }}/node/{{ item }}" with_items: - "system:node:{{ openshift.common.hostname }}.crt" - "system:node:{{ openshift.common.hostname }}.key" @@ -35,8 +35,8 @@ certs_missing: "{{ stat_result.results | map(attribute='stat.exists') | list | intersect([false])}}" node_subdir: node-{{ openshift.common.hostname }} - config_dir: /etc/openshift/generated-configs/node-{{ openshift.common.hostname }} - node_cert_dir: /etc/openshift/node + config_dir: "{{ openshift.common.config_base }}/generated-configs/node-{{ openshift.common.hostname }}" + node_cert_dir: "{{ openshift.common.config_base }}/node" - name: Create temp directory for syncing certs hosts: localhost @@ -89,9 +89,9 @@ path: "{{ node_cert_dir }}" state: directory - # TODO: notify restart openshift-node + # TODO: notify restart node # possibly test service started time against certificate/config file - # timestamps in openshift-node to trigger notify + # timestamps in node to trigger notify - name: Unarchive the tarball on the node unarchive: src: "{{ sync_tmpdir }}/{{ node_subdir }}.tgz" diff --git a/playbooks/common/openshift-node/service.yml b/playbooks/common/openshift-node/service.yml index f76df089f..5cf83e186 100644 --- a/playbooks/common/openshift-node/service.yml +++ b/playbooks/common/openshift-node/service.yml @@ -10,9 +10,9 @@ add_host: name={{ item }} groups=g_service_nodes with_items: oo_host_group_exp | default([]) -- name: Change openshift-node state on node instance(s) +- name: Change state on node instance(s) hosts: g_service_nodes connection: ssh gather_facts: no tasks: - - service: name=openshift-node state="{{ new_cluster_state }}" + - service: name={{ service_type }}-node state="{{ new_cluster_state }}" |