From 1644d5b45edfb8594670e964147fdf407cce4efe Mon Sep 17 00:00:00 2001 From: rblundon Date: Fri, 21 Mar 2025 21:05:31 -0500 Subject: [PATCH] Added ALL README files and converted the FreeIPA password to an environment variable. --- .gitignore | 18 +++++++++++++++++- 01-storage/README.md | 0 03-unbound-dns/README.md | 0 04-free-ipa/README.md | 0 05-templates/README.md | 0 06-matchbox/README.md | 0 10-sno-hub-cluster/00-dns/README.md | 15 +++++++++++++++ 10-sno-hub-cluster/00-dns/provider.tf | 8 +++++++- 10-sno-hub-cluster/README.md | 0 9 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 01-storage/README.md create mode 100644 03-unbound-dns/README.md create mode 100644 04-free-ipa/README.md create mode 100644 05-templates/README.md create mode 100644 06-matchbox/README.md create mode 100644 10-sno-hub-cluster/00-dns/README.md create mode 100644 10-sno-hub-cluster/README.md diff --git a/.gitignore b/.gitignore index 8922d2c..581a241 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,20 @@ Temporary Items .vscode/ # macOS metadata -*.icloud \ No newline at end of file +*.icloud + +# Terraform +.terraform/ +*.tfstate +*.tfstate.backup + +# Crash log files +crash.log + +# Ignore override files as they are usually used to override resources locally +*.override.tf +*.override.tf.json + +# Ignore CLI configuration files +.terraformrc +.terraformrc.json diff --git a/01-storage/README.md b/01-storage/README.md new file mode 100644 index 0000000..e69de29 diff --git a/03-unbound-dns/README.md b/03-unbound-dns/README.md new file mode 100644 index 0000000..e69de29 diff --git a/04-free-ipa/README.md b/04-free-ipa/README.md new file mode 100644 index 0000000..e69de29 diff --git a/05-templates/README.md b/05-templates/README.md new file mode 100644 index 0000000..e69de29 diff --git a/06-matchbox/README.md b/06-matchbox/README.md new file mode 100644 index 0000000..e69de29 diff --git a/10-sno-hub-cluster/00-dns/README.md b/10-sno-hub-cluster/00-dns/README.md new file mode 100644 index 0000000..68c67d9 --- /dev/null +++ b/10-sno-hub-cluster/00-dns/README.md @@ -0,0 +1,15 @@ +# DNS Provider Configuration + +This directory contains the configuration for the DNS provider using FreeIPA. + +## Environment Variables + +To securely provide the password for the FreeIPA provider, set the following environment variable before running Terraform: + +```bash +export TF_VAR_freeipa_password="your_password_here" +``` + +Replace `your_password_here` with the actual password. + +Ensure that this environment variable is set in your shell session or in a secure environment management tool before executing Terraform commands. diff --git a/10-sno-hub-cluster/00-dns/provider.tf b/10-sno-hub-cluster/00-dns/provider.tf index 6a187c9..4d1c4f8 100644 --- a/10-sno-hub-cluster/00-dns/provider.tf +++ b/10-sno-hub-cluster/00-dns/provider.tf @@ -2,10 +2,16 @@ provider "freeipa" { host = "infra01.int.mk-labs.cloud" username = "admin" - password = "Gen1:1NASB" + password = var.freeipa_password insecure = true } +variable "freeipa_password" { + description = "The password for the FreeIPA provider" + type = string + sensitive = true +} + terraform { required_providers { freeipa = { diff --git a/10-sno-hub-cluster/README.md b/10-sno-hub-cluster/README.md new file mode 100644 index 0000000..e69de29