Begin attempting to bring up opentofu for openstack setup

This commit is contained in:
Kaare Hoff Skovgaard 2025-07-07 21:15:35 +02:00
parent 47dbb7cdd3
commit 8e31f30762
Signed by: khs
GPG key ID: C7D890804F01E9F0
6 changed files with 14 additions and 3 deletions

View file

@ -1 +0,0 @@
flake-profile-4-link

View file

@ -1 +0,0 @@
/nix/store/k5vgwymjcra0rv45n3vza2myawy6w48z-nix-shell-env

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.direnv/
result/
.DS_Store
.terraform-cache/*/*/config.tf.json

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }:
let
opentofu = pkgs.opentofu;
opentofu = pkgs.khscodes.opentofu;
# TODO: We should figure out a way of passing the secrets map at runtime instead of build time.
# for now this map just needs to include every secret we could need, which also makes the reading of secrets take way longer than
# needed.

View file

@ -0,0 +1 @@
{ pkgs }: pkgs.opentofu.withPlugins (p: [ pkgs.khscodes.terraform-provider-unifi ])

View file

@ -0,0 +1,11 @@
{ pkgs }:
pkgs.terraform-providers.mkProvider {
hash = "sha256-ms0yu0AjGCu9pXetLhUKfPMSMpNC8K/PuZ809UCqClY=";
homepage = "https://registry.terraform.io/providers/paultyng/unifi";
owner = "paultyng";
repo = "terraform-provider-unifi";
rev = "ff9c041b3dc4dc6cf6db4c824a43ed6d3ae408d1";
version = "v0.42.0-prerelease";
spdx = "MPL-2.0";
vendorHash = null;
}