diff options
author | Troy Dawson <tdawson@redhat.com> | 2015-02-17 14:04:02 -0600 |
---|---|---|
committer | Troy Dawson <tdawson@redhat.com> | 2015-02-17 14:04:02 -0600 |
commit | 208af8ffec722622ab6dff428154ac3b00ca1434 (patch) | |
tree | b9c5153beaa6563e9cd9a09e0eec97ea73287764 /roles/openshift_node/tasks | |
parent | 5825d847da539256de3a7e4eef2dcbc38c198d0a (diff) | |
parent | bcb257a6a68cf907afeb547e34d456f0351b45c2 (diff) | |
download | openshift-208af8ffec722622ab6dff428154ac3b00ca1434.tar.gz openshift-208af8ffec722622ab6dff428154ac3b00ca1434.tar.bz2 openshift-208af8ffec722622ab6dff428154ac3b00ca1434.tar.xz openshift-208af8ffec722622ab6dff428154ac3b00ca1434.zip |
fixup oso-rhui repos
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml new file mode 100644 index 000000000..e0041a90c --- /dev/null +++ b/roles/openshift_node/tasks/main.yml @@ -0,0 +1,43 @@ +--- + +# tasks file for openshift_node +- name: Install OpenShift + yum: pkg=openshift-node state=installed + + # fixme: Once openshift stops resolving hostnames for node queries remove this... +- name: Set hostname to IP Addr (WORKAROUND) + hostname: name={{ oo_bind_ip }} + +- local_action: command /usr/bin/mktemp -d /tmp/openshift-ansible-XXXXXXX + register: mktemp + +- name: Retrieve OpenShift Master credentials + local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' root@{{ oo_master_public_ips[0] }}:/var/lib/openshift/openshift.local.certificates/admin/ {{ mktemp.stdout }} + ignore_errors: yes + +- file: path=/var/lib/openshift/openshift.local.certificates/admin state=directory + +- name: Store OpenShift Master credentials + local_action: command /usr/bin/rsync --compress --archive --rsh 'ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' {{ mktemp.stdout }}/ root@{{ oo_public_ip }}:/var/lib/openshift/openshift.local.certificates/admin + ignore_errors: yes + +- name: Configure OpenShift Node settings + lineinfile: + dest: /etc/sysconfig/openshift-node + regexp: "{{ item.regex }}" + line: "{{ item.line }}" + with_items: + - { regex: '^OPTIONS=', line: 'OPTIONS=\"--master=http://{{ oo_master_ips[0] }}:8080 --loglevel=5\"' } + notify: + - restart openshift-node + +- name: Open firewalld port for OpenShift + firewalld: port=10250/tcp permanent=false state=enabled + +- name: Save firewalld port for OpenShift + firewalld: port=10250/tcp permanent=true state=enabled + +- name: Enable OpenShift + service: name=openshift-node enabled=yes state=started + +- local_action: file name={{ mktemp.stdout }} state=absent |