From 8c00a98ae203a17b5d3870772bc67d0f6d4fcdbd Mon Sep 17 00:00:00 2001 From: rblundon Date: Sat, 22 Mar 2025 17:52:41 -0500 Subject: [PATCH] Variable structure finalized --- 10-sno-hub-cluster/install.yml | 1 - README.md | 17 +++++++++++++++++ group_vars/{all.yml => all/vars} | 0 group_vars/{vault.yml => all/vault} | 0 inventory.yml | 2 ++ 5 files changed, 19 insertions(+), 1 deletion(-) rename group_vars/{all.yml => all/vars} (100%) rename group_vars/{vault.yml => all/vault} (100%) create mode 100644 inventory.yml diff --git a/10-sno-hub-cluster/install.yml b/10-sno-hub-cluster/install.yml index 054a7b3..00c0df2 100644 --- a/10-sno-hub-cluster/install.yml +++ b/10-sno-hub-cluster/install.yml @@ -3,7 +3,6 @@ hosts: 127.0.0.1 connection: local gather_facts: true - #vars_files: ../vars.yml vars_prompt: - name: freeipa_password diff --git a/README.md b/README.md index 3b82123..7d49aab 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,23 @@ For the sake of this documentation we'll assume the following: ## Getting Started +### Create your vault file for secrets + +### Store your vault password somewhere save + +```bash +vi ~/.vault_pass.txt +chmod 644 ~/.vault_pass.txt +``` + +### Add envireonment variable with location of vault password + +Add "export ANSIBLE_VAULT_PASSWORD_FILE=~/.vault_pass.txt" to your shell profile. + +```bash +ansible-playbook -i inventory.yaml 10-sno-hub-cluster/install.yml +``` + ### Hub Cluster You'll need an OpenShift "Hub Cluster" with access to persistant storage. diff --git a/group_vars/all.yml b/group_vars/all/vars similarity index 100% rename from group_vars/all.yml rename to group_vars/all/vars diff --git a/group_vars/vault.yml b/group_vars/all/vault similarity index 100% rename from group_vars/vault.yml rename to group_vars/all/vault diff --git a/inventory.yml b/inventory.yml new file mode 100644 index 0000000..1ad37c3 --- /dev/null +++ b/inventory.yml @@ -0,0 +1,2 @@ +[default] +localhost