forked from Fediversity/Fediversity
add some comments
This commit is contained in:
parent
ca03480e35
commit
24e66476aa
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,7 @@ locals {
|
|||
}
|
||||
|
||||
# FIXME move to host
|
||||
# FIXME add proxmox
|
||||
data "external" "base-hash" {
|
||||
program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ${path.module}/../common/nixos/base.nix)\\\"}\""]
|
||||
}
|
||||
|
@ -45,6 +46,7 @@ resource "terraform_data" "template" {
|
|||
environment = {
|
||||
NIX_PATH = local.nix_path
|
||||
}
|
||||
# FIXME configure to use actual base image
|
||||
command = <<-EOF
|
||||
set -euo pipefail
|
||||
|
||||
|
@ -73,12 +75,17 @@ resource "proxmox_virtual_environment_file" "upload" {
|
|||
}
|
||||
}
|
||||
|
||||
# FIXME distinguish var.category
|
||||
data "proxmox_virtual_environment_vms" "nixos_base" {
|
||||
node_name = local.node_name
|
||||
filter {
|
||||
name = "template"
|
||||
values = [true]
|
||||
}
|
||||
# filter {
|
||||
# name = "node_name"
|
||||
# values = ["nixos-base"]
|
||||
# }
|
||||
}
|
||||
|
||||
resource "proxmox_virtual_environment_vm" "nix_vm" {
|
||||
|
|
Loading…
Add table
Reference in a new issue