share state: terraform cloud
This commit is contained in:
parent
71be74202c
commit
075b6c5391
|
@ -15,23 +15,6 @@ provider "registry.opentofu.org/carlpett/sops" {
|
|||
]
|
||||
}
|
||||
|
||||
provider "registry.opentofu.org/hashicorp/local" {
|
||||
version = "2.4.1"
|
||||
hashes = [
|
||||
"h1:ZmiQvqAmblLC08P/NR+AVQtZrD+GGRpjFWcl+qX3+tE=",
|
||||
"zh:0d4d7a980ba3479459ab8a231019588d38615b22b97600419c3c7482ee82bc8b",
|
||||
"zh:16cf003a5bff1c5cae32e29af30f54376aec29b21ce26768d5fa59cc8b3bac3e",
|
||||
"zh:469539918519547b2b87a9301ad811e59e50d4f217c36da01e0d981b45a393e9",
|
||||
"zh:620234f4c7dcfd00fa4b7d15e71fa055ada4a8afe084f84a40d06d02fc7e7c08",
|
||||
"zh:68fd2f982c5fecff972e03eced690077911083f782a237d5a026597ab387f737",
|
||||
"zh:7bc30de9089a3d060f9866e08f6bd766351880026a458a4b7443cb110d47dc16",
|
||||
"zh:ad772631dfa005fdd6f7cc2ce33d1771218574b5153c5d601d7584fe9e8a0da2",
|
||||
"zh:cb6f16481607a3899e1d0a8f9fcacf246fb4927ee274da69c7d1e75fc4960713",
|
||||
"zh:dcac954e9e401c53db3750ab3df22173f7ba288e978da348f97ddbbc4a33abb1",
|
||||
"zh:eeeb0583e152403bdb473de5f133b48cef04af8f7c3f38ee7dc6d034df91534d",
|
||||
]
|
||||
}
|
||||
|
||||
provider "registry.opentofu.org/hetznercloud/hcloud" {
|
||||
version = "1.45.0"
|
||||
hashes = [
|
||||
|
|
17
config.nix
17
config.nix
|
@ -32,9 +32,21 @@ let
|
|||
|
||||
in rec {
|
||||
|
||||
terraform.required_providers = {
|
||||
terraform = {
|
||||
|
||||
required_providers = {
|
||||
|
||||
sops.source = "carlpett/sops";
|
||||
sops.source = "carlpett/sops";
|
||||
|
||||
};
|
||||
|
||||
cloud = {
|
||||
hostname = "app.terraform.io";
|
||||
organization = "bij1";
|
||||
workspaces = {
|
||||
name = "hcloud";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
@ -49,7 +61,6 @@ in rec {
|
|||
|
||||
resource = (inNamespace "hcloud" {
|
||||
|
||||
|
||||
ssh_key = setNames (lib.mapAttrs (_: v: { public_key = v; }) my-lib.ssh-keys);
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue