Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster_templates fail if fapolicyd is enabled when multiple templates are specified #194

Open
aleiner opened this issue Mar 22, 2024 · 0 comments

Comments

@aleiner
Copy link
Contributor

aleiner commented Mar 22, 2024

fapolicyd blocks ansibles method of deploying multiple files. work around identified as:

`- name: Find yaml files
ansible.builtin.find:
paths: "{{ cluster_manifest_config_file_path }}"
file_type: file
recurse: No
patterns: "*yaml"
register: files_matched
delegate_to: localhost
when:
- inventory_hostname in groups['rke2_servers'][0]
- cluster_manifest_config_file_path is defined
- cluster_manifest_config_file_path | length > 0

  • name: Set manifest_file_list for other hosts
    ansible.builtin.set_fact:
    manifest_file_list: "{{files_matched}}"
    delegate_to: localhost

  • name: Print manifest_file_list
    ansible.builtin.debug:
    msg: "{{ manifest_file_list }}"

  • name: Add cluster manifest addons files
    ansible.builtin.copy:
    src: "{{ item.path }}"
    dest: "/var/lib/rancher/rke2/server/manifests/cluster_templates/"
    mode: '0640'
    owner: root
    group: root
    with_items: "{{manifest_file_list.files}}"
    when:

    • inventory_hostname in groups['rke2_servers'][0]
    • cluster_manifest_config_file_path is defined
    • cluster_manifest_config_file_path | length > 0`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant