Skip to content

Commit

Permalink
Merge pull request #181 from rancherfederal/180-allow-for-manifests-t…
Browse files Browse the repository at this point in the history
…o-be-applied-after-the-cluster-is-fully-up

allowing templates to be applied AFTER the cluster is fully up
  • Loading branch information
aleiner authored Jan 16, 2024
2 parents 74b89d5 + a55b6ec commit 104f126
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/cluster_manifest/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

- name: Add cluster manifest addons files
ansible.builtin.copy:
src: "{{ cluster_manifest_config_file_path }}"
dest: "/var/lib/rancher/rke2/server/manifests/"
mode: '0640'
owner: root
group: root
when:
- inventory_hostname in groups['rke2_servers'][0]
- cluster_manifest_config_file_path is defined
- cluster_manifest_config_file_path | length > 0
7 changes: 7 additions & 0 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,10 @@
roles:
- role: rke2_agent
serial: 3

- name: Cluster manifest play
hosts: rke2_servers
any_errors_fatal: true
become: true
roles:
- role: cluster_manifest

0 comments on commit 104f126

Please sign in to comment.