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

Adds kustomization that adds edpm_bootstrap_command to the compute nodes #2652

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hooks/playbooks/fetch_compute_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
ansible.builtin.set_fact:
cifmw_edpm_deploy_extra_vars: "{{ edpm_install_yamls_vars }}"

- name: Debug
ansible.builtin.debug:
var: cifmw_hook_fetch_compute_facts_edpm_cmd

- name: Create EDPM CR Kustomization
vars:
dns_servers: "{{ ((['192.168.122.10'] + ansible_facts['dns']['nameservers']) | unique)[0:2] }}"
Expand Down Expand Up @@ -257,6 +261,12 @@
path: /spec/nodeTemplate/ansible/ansibleVars/edpm_sshd_allowed_ranges
value: ["0.0.0.0/0"]

{% if cifmw_hook_fetch_compute_facts_edpm_cmd is defined %}
- op: add
path: /spec/nodeTemplate/ansible/ansibleVars/edpm_bootstrap_command
value: "{{ cifmw_hook_fetch_compute_facts_edpm_cmd }}"
{% endif %}

- name: Ensure we know about the private host keys
ansible.builtin.shell:
cmd: |
Expand Down
Loading