forked from Fediversity/Fediversity
Add options for Proxmox and Proxmox VM id
This commit is contained in:
parent
1677c9f8d7
commit
0813eca20c
2 changed files with 26 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption;
|
inherit (lib) mkOption;
|
||||||
|
inherit (lib.types) types;
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -13,6 +14,29 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
proxmox = mkOption {
|
||||||
|
type = types.nullOr (
|
||||||
|
types.enum [
|
||||||
|
"procolix"
|
||||||
|
"fediversity"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
description = ''
|
||||||
|
The Proxmox instance. This is used for provisioning only and should be
|
||||||
|
set to `null` if the machine is not a VM.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
vmId = mkOption {
|
||||||
|
# REVIEW: There is `types.ints.between` but maybe not `types.ints.above`?
|
||||||
|
type = types.nullOr (types.addCheck types.int (x: x >= 100));
|
||||||
|
description = ''
|
||||||
|
The id of the machine in the corresponding Proxmox. This is used for
|
||||||
|
provisioning only and should be set to `null` if the machine is not a
|
||||||
|
VM.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
domain = mkOption {
|
domain = mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
The domain hosting the machine. Most of the time, this will be either of
|
The domain hosting the machine. Most of the time, this will be either of
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
fediversityVm = {
|
fediversityVm = {
|
||||||
|
vmId = 200;
|
||||||
|
proxmox = "fediversity";
|
||||||
domain = "abundos.eu";
|
domain = "abundos.eu";
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
address = "95.215.187.200";
|
address = "95.215.187.200";
|
||||||
|
|
Loading…
Add table
Reference in a new issue