Skip to content

Commit

Permalink
Removed Hardcoded Calico URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentS committed May 10, 2017
1 parent 402e8ca commit df72177
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions roles/calico/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ etcd_endpoints: "{{ hostvars[groups.oo_first_master.0].openshift.master.etcd_url

cni_conf_dir: "/etc/cni/net.d/"
cni_bin_dir: "/opt/cni/bin/"
cni_url: "https://github.com/containernetworking/cni/releases/download/v0.4.0/cni-amd64-v0.4.0.tgz"

calico_etcd_ca_cert_file: "/etc/origin/calico/calico.etcd-ca.crt"
calico_etcd_cert_file: "/etc/origin/calico/calico.etcd-client.crt"
calico_etcd_key_file: "/etc/origin/calico/calico.etcd-client.key"

calico_url_cni: "https://github.com/projectcalico/cni-plugin/releases/download/v1.5.5/calico"
calico_url_ipam: "https://github.com/projectcalico/cni-plugin/releases/download/v1.5.5/calico-ipam"
6 changes: 3 additions & 3 deletions roles/calico/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@
- name: Download Calico CNI Plugin
become: yes
get_url:
url: https://github.com/projectcalico/cni-plugin/releases/download/v1.5.5/calico
url: "{{ calico_url_cni }}"
dest: "{{ cni_bin_dir }}"
mode: a+x

- name: Download Calico IPAM Plugin
become: yes
get_url:
url: https://github.com/projectcalico/cni-plugin/releases/download/v1.5.5/calico-ipam
url: "{{ calico_url_ipam }}"
dest: "{{ cni_bin_dir }}"
mode: a+x

- name: Download and unzip standard CNI plugins
become: yes
unarchive:
remote_src: True
src: https://github.com/containernetworking/cni/releases/download/v0.4.0/cni-amd64-v0.4.0.tgz
src: "{{ cni_url }}"
dest: "{{ cni_bin_dir }}"

- name: Assure Calico conf dir exists
Expand Down

0 comments on commit df72177

Please sign in to comment.