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