mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2025-02-16 10:21:44 +01:00
move to openTofu
This commit is contained in:
parent
34aac32db1
commit
6223578987
@ -47,17 +47,19 @@
|
||||
pkgs.mkShell {
|
||||
packages =
|
||||
let
|
||||
halalify = drv: drv.overrideAttrs (_old: { meta = _old.meta // { license = lib.licenses.free; }; });
|
||||
convert2Tofu = provider: provider.override (prev: {
|
||||
homepage = builtins.replaceStrings [ "registry.terraform.io/providers" ] [ "registry.opentofu.org" ] prev.homepage;
|
||||
});
|
||||
in
|
||||
[
|
||||
pkgs.bashInteractive
|
||||
pkgs.sops
|
||||
(halalify (pkgs.terraform.withPlugins (p: [
|
||||
(pkgs.opentofu.withPlugins (p: builtins.map convert2Tofu [
|
||||
p.hcloud
|
||||
p.null
|
||||
p.external
|
||||
p.local
|
||||
])))
|
||||
]))
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -2,6 +2,6 @@
|
||||
set -euo pipefail
|
||||
|
||||
rm -f .terraform.lock.hcl
|
||||
terraform init -backend-config="password=$GITLAB_TOKEN" -backend-config="username=$GITLAB_USER"
|
||||
terraform apply
|
||||
tofu init -backend-config="password=$GITLAB_TOKEN" -backend-config="username=$GITLAB_USER"
|
||||
tofu apply
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user