forked from fediversity/fediversity
rm flake invocation
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
4c331a100f
commit
d217fa5df9
1 changed files with 0 additions and 67 deletions
67
flake.nix
67
flake.nix
|
|
@ -52,73 +52,6 @@
|
|||
trim-trailing-whitespace.enable = true;
|
||||
shellcheck.enable = true;
|
||||
};
|
||||
|
||||
# https://192.168.51.81:8006/#v1:0:=node%2Fnode051:4:::::8::=apitokens
|
||||
|
||||
# apps.default = {
|
||||
# type = "app";
|
||||
# program = pkgs.writers.writeBashBin "provision-proxmox.sh"
|
||||
# {
|
||||
# makeWrapperArgs = [
|
||||
# "--prefix"
|
||||
# "PATH"
|
||||
# ":"
|
||||
# "${lib.makeBinPath [
|
||||
# pkgs.jq
|
||||
# pkgs.httpie
|
||||
# ]}"
|
||||
# ];
|
||||
# }
|
||||
# ''
|
||||
# sh ./infra/proxmox-remove.sh --api-url "https://192.168.51.81:8006/api2/json" --username "kiara@ProcoliX" --password "" 7014 # test14
|
||||
# sh ./infra/proxmox-provision.sh --api-url "https://192.168.51.81:8006/api2/json" --username "kiara@ProcoliX" --password "" test14
|
||||
# '';
|
||||
# };
|
||||
|
||||
# api_token = "terraform@pve!provider=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
# kiara@ProcoliX!dsdfsfdsfd=30df234b-02f3-4ed9-b778-00d28ad3499c
|
||||
|
||||
apps.default =
|
||||
let
|
||||
inherit (pkgs) system;
|
||||
# FIXME rewire to defer env var
|
||||
deployment = pkgs.writeShellScriptBin "my-app-with-environment" ''
|
||||
export PROXMOX_VE_SSH_USERNAME="kiara@ProcoliX"
|
||||
export PROXMOX_VE_SSH_PASSWORD=""
|
||||
${(import ./deployment/check/common/data-model.nix {
|
||||
inherit system;
|
||||
config = {
|
||||
targetSystem = system;
|
||||
nodeName = "192.168.51.81"; # root@fediversity-proxmox
|
||||
pathToRoot = builtins.path {
|
||||
path = ./.;
|
||||
name = "root";
|
||||
};
|
||||
sshOpts = [ ];
|
||||
key-file = "";
|
||||
node-name = "node051";
|
||||
bridge = "ovsbr0";
|
||||
vlanId = 1305;
|
||||
imageDatastoreId = "local";
|
||||
vmDatastoreId = "linstor_storage";
|
||||
cdDatastoreId = "local-lvm";
|
||||
ipv4Gateway = "eth0";
|
||||
ipv4Address = "";
|
||||
# ipv4Address = "95.215.187.${vm-id}";
|
||||
ipv6Gateway = "eth0";
|
||||
ipv6Address = "";
|
||||
# ipv6Address = "2a00:51c0:13:1305::${vm-id}";
|
||||
};
|
||||
# opt not to pass `inputs`, as we could only pass serializable arguments through to its self-call
|
||||
})."tf-proxmox-deployment".tf-proxmox-vm
|
||||
}
|
||||
'';
|
||||
in
|
||||
{
|
||||
type = "app";
|
||||
program = deployment.run;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue