mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-22 16:44:24 +00:00
Remove gh token from cloudinit
This commit is contained in:
@@ -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:**
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user