Skip to content

Commit

Permalink
Force creating hard- and softlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
vrutkovs committed May 17, 2018
1 parent 1283ae7 commit ae19e99
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
src: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
path: "{{ openshift.common.config_base }}/master/ca.crt"
state: link
force: yes
when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists

- name: Update oreg value
Expand Down
1 change: 1 addition & 0 deletions roles/contiv/tasks/netmaster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
src: "{{ contiv_current_release_directory }}/{{ item }}"
dest: "{{ contiv_bin_dir }}/{{ item }}"
state: link
force: yes
with_items:
- netmaster
- netctl
Expand Down
2 changes: 2 additions & 0 deletions roles/contiv/tasks/netplugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
src: "{{ contiv_current_release_directory }}/netplugin"
dest: "{{ contiv_bin_dir }}/netplugin"
state: link
force: yes

- name: Netplugin | Ensure contiv_cni_bin_dir exists
file:
Expand All @@ -39,6 +40,7 @@
src: "{{ contiv_current_release_directory }}/contivk8s"
dest: "{{ contiv_cni_bin_dir }}/contivk8s"
state: link
force: yes

- name: Netplugin | Copy CNI loopback bin
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
src: "{{ etcd_ca_cert }}"
dest: "{{ etcd_generated_certs_dir}}/{{ etcd_cert_subdir }}/{{ etcd_cert_prefix }}ca.crt"
state: hard
force: yes
when: etcd_client_certs_missing | bool
delegate_to: "{{ etcd_ca_host }}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
src: "{{ etcd_ca_cert }}"
dest: "{{ etcd_generated_certs_dir}}/{{ etcd_cert_subdir }}/{{ etcd_cert_prefix }}ca.crt"
state: hard
force: yes
when: etcd_server_certs_missing | bool
delegate_to: "{{ etcd_ca_host }}"

Expand Down
1 change: 1 addition & 0 deletions roles/openshift_master_certificates/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,5 @@
src: "{{ openshift.common.config_base }}/master/ca-bundle.crt"
path: "{{ openshift.common.config_base }}/master/ca.crt"
state: link
force: yes
when: ca_crt_stat.stat.isreg and not ca_bundle_stat.stat.exists

0 comments on commit ae19e99

Please sign in to comment.