moved vars

This commit is contained in:
2025-03-23 01:56:48 -05:00
parent 9824ab2a52
commit 46628aa324
4 changed files with 14 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
--- ---
- name: Create a directory if it does not exist - name: Create a directory if it does not exist
ansible.builtin.file: ansible.builtin.file:
path: "{{ matchbox_assets }}/{{ hub_cluster_name }}" path: "{{ matchbox_assets }}/{{ hostvars['ocp-hub'].cluster_name }}"
state: directory state: directory
mode: '0755' mode: '0755'
become: true become: true
@@ -9,7 +9,7 @@
- name: Copy file with owner and permissions - name: Copy file with owner and permissions
ansible.builtin.copy: ansible.builtin.copy:
src: 03-openshift-image/boot-artifacts/ src: 03-openshift-image/boot-artifacts/
dest: "{{ matchbox_assets }}/{{ hub_cluster_name }}/" dest: "{{ matchbox_assets }}/{{ hostvars['ocp-hub'].cluster_name }}/"
owner: matchbox owner: matchbox
group: matchbox group: matchbox
become: true become: true

View File

@@ -1,19 +1 @@
--- ---
# Variables for Free-IPA
freeipa_user: "admin"
freeipa_password: "{{ vault_freeipa_password }}"
# Variables for Matchbox
matchbox_assets: "/var/lib/matchbox/assets"
matchbox_http_endpoint: "http://matchbox.int.mk-labs.cloud:8080"
matchbox_rpc_endpoint: "matchbox.int.mk-labs.cloud:8081"
# Variables for OpenShift Installer
openshift_installer_pull_secret: "{{ vault_pull_secret }}"
openshift_installer_ssh_key: "{{ vault_ssh_key }}"
# # Variables for 10-sno-hub-cluster
# hub_cluster_mac_address: "98:b7:85:1e:c6:f1"
# hub_cluster_ip_address: "10.1.71.10"
# hub_cluster_hostname: "ocp-hub"
# hub_cluster_name: "hub"

3
group_vars/freeipa/vars Normal file
View File

@@ -0,0 +1,3 @@
---
freeipa_user: "admin"
freeipa_password: "{{ vault_freeipa_password }}"

9
group_vars/matchbox/vars Normal file
View File

@@ -0,0 +1,9 @@
---
# Variables for Matchbox
matchbox_assets: "/var/lib/matchbox/assets"
matchbox_http_endpoint: "http://matchbox.int.mk-labs.cloud:8080"
matchbox_rpc_endpoint: "matchbox.int.mk-labs.cloud:8081"
# Variables for OpenShift Installer
openshift_installer_pull_secret: "{{ vault_pull_secret }}"
openshift_installer_ssh_key: "{{ vault_ssh_key }}"