mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(ct): update template
This commit is contained in:
parent
a283b4bf9a
commit
a03d567652
3 changed files with 9 additions and 4 deletions
|
|
@ -190,7 +190,6 @@ in {
|
||||||
};
|
};
|
||||||
nftables = mkIf (networking.nftables.enable && cfg.localaddrs.enable) rec {
|
nftables = mkIf (networking.nftables.enable && cfg.localaddrs.enable) rec {
|
||||||
wants = [ "localaddrs.service" ];
|
wants = [ "localaddrs.service" ];
|
||||||
after = wants;
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecReload = mkBefore [
|
ExecReload = mkBefore [
|
||||||
"+${localaddrs-reload}"
|
"+${localaddrs-reload}"
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,10 @@
|
||||||
inherit (lib) mkDefault;
|
inherit (lib) mkDefault;
|
||||||
in {
|
in {
|
||||||
services.kanidm.serverSettings.db_fs_type = mkDefault "zfs";
|
services.kanidm.serverSettings.db_fs_type = mkDefault "zfs";
|
||||||
|
# work around a filesystem issue when migrating an unprivileged container to privileged
|
||||||
|
boot.postBootCommands = ''
|
||||||
|
if [[ $(stat -c '%u' /) != 0 ]]; then
|
||||||
|
chown 0:0 / /*
|
||||||
|
fi
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
variable "proxmox_container_template" {
|
variable "proxmox_container_template" {
|
||||||
type = string
|
type = string
|
||||||
default = "local:vztmpl/reisen-ct-2024-01-26-nixos-system-x86_64-linux.tar.xz"
|
default = "local:vztmpl/ct-20240127-nixos-system-x86_64-linux.tar.xz"
|
||||||
}
|
}
|
||||||
|
|
||||||
data "proxmox_virtual_environment_vm" "kubernetes" {
|
data "proxmox_virtual_environment_vm" "kubernetes" {
|
||||||
|
|
@ -54,7 +54,7 @@ resource "proxmox_virtual_environment_container" "reimu" {
|
||||||
started = false
|
started = false
|
||||||
|
|
||||||
lifecycle {
|
lifecycle {
|
||||||
ignore_changes = [started, description]
|
ignore_changes = [started, description, operating_system[0].template_file_id]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,7 +112,7 @@ resource "proxmox_virtual_environment_vm" "freeipa" {
|
||||||
|
|
||||||
disk {
|
disk {
|
||||||
datastore_id = "local-zfs"
|
datastore_id = "local-zfs"
|
||||||
file_format = "raw"
|
file_format = "raw"
|
||||||
interface = "scsi0"
|
interface = "scsi0"
|
||||||
size = 32
|
size = 32
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue