diff options
author | Sylvain Baubeau <sbaubeau@redhat.com> | 2015-10-13 16:36:01 +0200 |
---|---|---|
committer | Sylvain Baubeau <sbaubeau@redhat.com> | 2015-10-27 17:42:56 +0100 |
commit | 2a7131b9403a4b22ebc55606814f604f723dc826 (patch) | |
tree | 0930790b4718d3bcfb96da8fb7cc65072e280f64 /roles/flannel_register/tasks | |
parent | f450c935f69366a15e078ec11b82bfa0c7130f6d (diff) | |
download | openshift-2a7131b9403a4b22ebc55606814f604f723dc826.tar.gz openshift-2a7131b9403a4b22ebc55606814f604f723dc826.tar.bz2 openshift-2a7131b9403a4b22ebc55606814f604f723dc826.tar.xz openshift-2a7131b9403a4b22ebc55606814f604f723dc826.zip |
Add flannel support
Signed-off-by: Sylvain Baubeau <sbaubeau@redhat.com>
Diffstat (limited to 'roles/flannel_register/tasks')
-rw-r--r-- | roles/flannel_register/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/flannel_register/tasks/main.yml b/roles/flannel_register/tasks/main.yml new file mode 100644 index 000000000..c58c74d34 --- /dev/null +++ b/roles/flannel_register/tasks/main.yml @@ -0,0 +1,14 @@ +--- +- name: Assures /etc/flannel dir exists + sudo: true + file: path=/etc/flannel state=directory + +- name: Generate etcd configuration for etcd + sudo: true + template: + src: "flannel-config.json" + dest: "/etc/flannel/config.json" + +- name: Insert flannel configuration into etcd + sudo: true + shell: 'curl -L --cacert "{{ etcd_peer_ca_file }}" --cert "{{ etcd_peer_cert_file }}" --key "{{ etcd_peer_key_file }}" "{{ etcd_hosts[0] }}/v2/keys{{ flannel_etcd_key }}/config" -XPUT --data-urlencode value@/etc/flannel/config.json' |