~xenrox/ansible

ref: 1f2402ad2d1a95b6a79883a54cef4931faf87ae6 ansible/terraform_vault/secrets.tf -rw-r--r-- 485 bytes
1f2402adThorben Günther build: Configure coloured output 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
resource "vault_generic_secret" "ansible_secrets" {
  for_each = fileset("/home/xenrox/decrypted/vault", "*.json")

  path      = trimsuffix("ansible/${each.key}", ".json")
  data_json = file("/home/xenrox/decrypted/vault/${each.key}")
}

resource "vault_generic_secret" "users" {
  for_each = fileset("/home/xenrox/decrypted/vault/users", "*.json")

  path      = trimsuffix("ansible/users/${each.key}", ".json")
  data_json = file("/home/xenrox/decrypted/vault/users/${each.key}")
}