A repository to manage the configuration of Vault secret engines, authentication modes and policies.
Go to file
Ben Vincent d508dcd4a9 feat: enable access to puppetcerts
- enable the terraform-incus repo to access puppet certs
2025-04-27 16:26:05 +10:00
policies feat: enable access to puppetcerts 2025-04-27 16:26:05 +10:00
.gitignore feat: import current status 2024-09-23 22:01:18 +10:00
auth_approle_certmanager.tf feat: import current status 2024-09-23 22:01:18 +10:00
auth_approle_incus_cluster.tf feat: add incus-cluster role/policies 2025-01-06 23:16:06 +11:00
auth_approle_packer_builder.tf fix: fix rolename 2025-01-11 21:32:33 +11:00
auth_approle_puppetapi.tf feat: add puppetapi approle/policy 2024-12-15 17:07:01 +11:00
auth_approle_rundeck-role.tf feat: import current status 2024-09-23 22:01:18 +10:00
auth_approle_sshsign-host-role.tf feat: import current status 2024-09-23 22:01:18 +10:00
auth_approle_sshsigner.tf feat: import current status 2024-09-23 22:01:18 +10:00
auth_approle_terraform_incus.tf feat: enable access to puppetcerts 2025-04-27 16:26:05 +10:00
auth_approle_terraform_nomad.tf feat: add terraform_nomad role 2024-12-28 17:14:14 +11:00
auth_approle_tf_vault.tf feat: add pki for k8s 2025-01-27 21:05:51 +11:00
auth_backend_approle.tf feat: import current status 2024-09-23 22:01:18 +10:00
auth_backend_ldap.tf fix: fix vault_* groups 2024-10-21 20:01:21 +11:00
engine_kv.tf feat: import current status 2024-09-23 22:01:18 +10:00
engine_pki_int.tf feat: import current status 2024-09-23 22:01:18 +10:00
engine_pki_root.tf feat: import current status 2024-09-23 22:01:18 +10:00
engine_rundeck.tf feat: import current status 2024-09-23 22:01:18 +10:00
engine_ssh-host-signer.tf feat: import current status 2024-09-23 22:01:18 +10:00
engine_sshca.tf feat: import current status 2024-09-23 22:01:18 +10:00
LICENSE Initial commit 2024-09-09 22:57:00 +10:00
main.tf feat: import current status 2024-09-23 22:01:18 +10:00
policies.tf feat: enable access to puppetcerts 2025-04-27 16:26:05 +10:00
README.md feat: import current status 2024-09-23 22:01:18 +10:00
role_pki_int_servers_default.tf feat: import current status 2024-09-23 22:01:18 +10:00
role_pki_root_2024_servers.tf feat: import current status 2024-09-23 22:01:18 +10:00
role_ssh-host-signer_hostrole.tf feat: import current status 2024-09-23 22:01:18 +10:00
role_sshca_signhost.tf feat: import current status 2024-09-23 22:01:18 +10:00

terraform-vault

A repository to manage the configuration of Vault secret engines, authentication modes and policies.

Usage

  1. Initialize Terraform

Once you have your backend block configured, you need to initialize your Terraform working directory to configure the backend:

terraform init

This command initializes the backend and checks the connection to Consul. If everything is set up correctly, Terraform will start using Consul as its backend for storing the state.

  1. Common terraform init Errors

If you encounter errors while running terraform init, check the following:

Consul server is reachable: Make sure that the address is correct and that you can connect to the Consul server.
Consul token (if using ACLs): Verify that the token has the correct permissions to write to the specified path in the Consul KV store.
  1. Example Consul KV Structure

In Consul, the state file will be stored in the KV store under the specified path:

terraform/state

You can check the Consul KV store by accessing the Consul UI or using the consul kv command to see the stored Terraform state:

consul kv get terraform/state