diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2014-09-16 13:15:48 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2014-09-16 13:15:48 -0400 |
commit | 5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 (patch) | |
tree | 4c17abdd1e5b39e845d33d7d970ac216a82d766d /roles/kubernetes_proxy/tasks | |
download | openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.gz openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.bz2 openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.xz openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.zip |
Initial Commit. Sharing is caring
Diffstat (limited to 'roles/kubernetes_proxy/tasks')
-rw-r--r-- | roles/kubernetes_proxy/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/kubernetes_proxy/tasks/main.yml b/roles/kubernetes_proxy/tasks/main.yml new file mode 100644 index 000000000..901b5f3ad --- /dev/null +++ b/roles/kubernetes_proxy/tasks/main.yml @@ -0,0 +1,17 @@ +--- +# tasks file for kubernetes_proxy +- name: Install kubernetes + yum: pkg=kubernetes state=installed + +- name: Configure kubernetes-proxy etcd servers + lineinfile: > + dest=/etc/sysconfig/kubernetes + regexp={{ item.regex }} + line="{{ item.line }}" + with_items: + - { regex: '^KUBE_ETCD_SERVERS=', line: 'KUBE_ETCD_SERVERS=\"http://{{ oo_master_ips[0] }}:4001\"' } + notify: + - restart kubernetes-proxy + +- name: Enable proxy + service: name=kubernetes-proxy enabled=yes state=started |