From daf62a2c0b6c1c5f980fae9008852269381db2d8 Mon Sep 17 00:00:00 2001
From: frenzyfriday <anbanerj@redhat.com>
Date: Thu, 16 Jan 2025 11:23:30 +0100
Subject: [PATCH] Adds kustomization that adds edpm_bootstrap_command to the
 compute nodes

---
 hooks/playbooks/fetch_compute_facts.yml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/hooks/playbooks/fetch_compute_facts.yml b/hooks/playbooks/fetch_compute_facts.yml
index 96c3c183f8..d21dd8861c 100644
--- a/hooks/playbooks/fetch_compute_facts.yml
+++ b/hooks/playbooks/fetch_compute_facts.yml
@@ -257,6 +257,21 @@
                     path: /spec/nodeTemplate/ansible/ansibleVars/edpm_sshd_allowed_ranges
                     value: ["0.0.0.0/0"]
 
+                  - op: add
+                    path: /spec/nodeTemplate/ansible/ansibleVars/edpm_bootstrap_command
+                    value: |
+                      # echo something random
+                      echo ******************TESTING FIX FOR CIX587 **************************
+                      # root CA
+                      pushd /etc/pki/ca-trust/source/anchors/
+                      curl -LOk {{ cifmw_install_ca_url }}
+                      update-ca-trust
+                      popd
+
+                      # install rhos-release repos
+                      dnf --nogpgcheck install -y {{ cifmw_repo_setup_rhos_release_rpm }}
+                      rhos-release {{ cifmw_repo_setup_rhos_release_args }}
+
         - name: Ensure we know about the private host keys
           ansible.builtin.shell:
             cmd: |