Skip to content

Commit 8b68da7

Browse files
committed
fix: update edge playbook
1 parent 6bede14 commit 8b68da7

File tree

3 files changed

+21
-1
lines changed
  • submitter/adaptors/ansible_adaptor/templates/micado-edge/v0.12.4/playbook/project

3 files changed

+21
-1
lines changed

submitter/adaptors/ansible_adaptor/templates/micado-edge/v0.12.4/playbook/project/group_vars/all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# config file for global MiCADO settings
22
# =======================================================
33

4+
# Registry credentials path
5+
registry_cred_path: credentials/credentials-registries.yml
46

57
# =======================================================
68
# end of user options. do not edit under this line

submitter/adaptors/ansible_adaptor/templates/micado-edge/v0.12.4/playbook/project/host_vars/micado.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
cloud_cred_path: credentials/credentials-cloud-api.yml
77
gce_cred_path: credentials/credentials-gce.json
88
oci_key_path: credentials/credentials-oci-key.pem
9-
registry_cred_path: credentials/credentials-registries.yml
109
micado_cred_path: credentials/credentials-micado.yml
1110

1211
# enable specific components

submitter/adaptors/ansible_adaptor/templates/micado-edge/v0.12.4/playbook/project/roles/micado_agent/tasks/join.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,22 @@
55
--node-name "{{ inventory_hostname | lower }}"
66
--token "{{ hostvars['micado']['k3s_token']['content'] | b64decode | trim }}"
77
--node-external-ip "{{ ansible_host }}"
8+
9+
- name: (registries) Checking the existence of registry credentials
10+
stat: path={{ registry_cred_path }}
11+
become: false
12+
delegate_to: localhost
13+
register: reg_creds
14+
15+
- name: (registries) Ensure /etc/rancher/k3s directory
16+
file:
17+
path: /etc/rancher/k3s
18+
state: directory
19+
mode: '0755'
20+
when: reg_creds.stat.exists
21+
22+
- name: (registries) Copy registries.yaml
23+
copy:
24+
src: "{{ registry_cred_path }}"
25+
dest: /etc/rancher/k3s/registries.yaml
26+
when: reg_creds.stat.exists

0 commit comments

Comments
 (0)