Remove gh token from cloudinit

This commit is contained in:
2024-12-25 00:36:34 +01:00
parent f7ca28297a
commit e23f279cb7
2 changed files with 0 additions and 9 deletions

View File

@@ -36,9 +36,6 @@ Provisioning, configuration and manifests for my Kubernetes dev cluster on Hetzn
username: <your-username> username: <your-username>
user_hashed_password: <your-hashed-password> user_hashed_password: <your-hashed-password>
user_ssh_public_key: <your-ssh-public-key> user_ssh_public_key: <your-ssh-public-key>
github_username: <your-github-username>
github_repo: <your-flux-repo-name>
github_token: <your-github-token>
``` ```
4. **Encrypt the secrets file:** 4. **Encrypt the secrets file:**

View File

@@ -51,9 +51,6 @@ data "cloudinit_config" "k8s_node" {
for key in split("\n", data.sops_file.secrets.data["user_ssh_public_keys"]) : for key in split("\n", data.sops_file.secrets.data["user_ssh_public_keys"]) :
key if trimspace(key) != "" key if trimspace(key) != ""
] ]
github_username = data.sops_file.secrets.data["github_username"]
github_repo = data.sops_file.secrets.data["github_repo"]
github_token = data.sops_file.secrets.data["github_token"]
}) })
} }
} }
@@ -146,9 +143,6 @@ output "cloud_init_raw" {
for key in split("\n", data.sops_file.secrets.data["user_ssh_public_keys"]) : for key in split("\n", data.sops_file.secrets.data["user_ssh_public_keys"]) :
key if trimspace(key) != "" key if trimspace(key) != ""
] ]
github_username = data.sops_file.secrets.data["github_username"]
github_repo = data.sops_file.secrets.data["github_repo"]
github_token = data.sops_file.secrets.data["github_token"]
}) })
sensitive = true sensitive = true
} }