forked from fediversity/fediversity
propagate cd
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
d73fa538c1
commit
09ef3ebbc7
7 changed files with 23 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ let
|
|||
vlanId
|
||||
imageDatastoreId
|
||||
vmDatastoreId
|
||||
cdDatastoreId
|
||||
ipv4Gateway
|
||||
ipv4Address
|
||||
ipv6Gateway
|
||||
|
|
@ -352,6 +353,7 @@ let
|
|||
vlanId
|
||||
imageDatastoreId
|
||||
vmDatastoreId
|
||||
cdDatastoreId
|
||||
ipv4Gateway
|
||||
ipv4Address
|
||||
ipv6Gateway
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ let
|
|||
vlanId = 0;
|
||||
imageDatastoreId = "local";
|
||||
vmDatastoreId = "local";
|
||||
cdDatastoreId = "local";
|
||||
ipv4Gateway = "192.168.1.1";
|
||||
ipv4Address = "192.168.1.236/24";
|
||||
ipv6Gateway = "";
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ in
|
|||
type = types.str;
|
||||
default = "local";
|
||||
};
|
||||
cdDatastoreId = mkOption {
|
||||
description = "ID of the datastore of the virtual CD-rom drive to use for cloud-init.";
|
||||
type = types.str;
|
||||
default = "local";
|
||||
};
|
||||
ipv4Gateway = mkOption {
|
||||
description = "Gateway for IPv4.";
|
||||
type = types.str;
|
||||
|
|
|
|||
|
|
@ -349,6 +349,11 @@ let
|
|||
type = types.str;
|
||||
default = "local";
|
||||
};
|
||||
cdDatastoreId = mkOption {
|
||||
description = "ID of the datastore of the virtual CD-rom drive to use for cloud-init.";
|
||||
type = types.str;
|
||||
default = "local";
|
||||
};
|
||||
ipv4Gateway = mkOption {
|
||||
description = "Gateway for IPv4.";
|
||||
type = types.str;
|
||||
|
|
@ -390,6 +395,7 @@ let
|
|||
vlanId
|
||||
imageDatastoreId
|
||||
vmDatastoreId
|
||||
cdDatastoreId
|
||||
ipv4Gateway
|
||||
ipv4Address
|
||||
ipv6Gateway
|
||||
|
|
@ -464,6 +470,7 @@ let
|
|||
vlan_id = vlanId;
|
||||
image_datastore_id = imageDatastoreId;
|
||||
vm_datastore_id = vmDatastoreId;
|
||||
cd_datastore_id = cdDatastoreId;
|
||||
ipv4_gateway = ipv4Gateway;
|
||||
ipv4_address = ipv4Address;
|
||||
ipv6_gateway = ipv6Gateway;
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ resource "proxmox_virtual_environment_vm" "nix_vm" {
|
|||
bios = "ovmf"
|
||||
|
||||
initialization {
|
||||
datastore_id = var.cd_datastore_id
|
||||
ip_config {
|
||||
ipv4 {
|
||||
gateway = var.ipv4_gateway
|
||||
|
|
|
|||
|
|
@ -76,6 +76,12 @@ variable "vm_datastore_id" {
|
|||
default = "local"
|
||||
}
|
||||
|
||||
variable "cd_datastore_id" {
|
||||
description = "ID of the datastore of the virtual CD-rom drive to use for cloud-init."
|
||||
type = string
|
||||
default = "local"
|
||||
}
|
||||
|
||||
variable "ipv4_gateway" {
|
||||
description = "Gateway for IPv4."
|
||||
type = string
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@
|
|||
vlanId = 1305;
|
||||
imageDatastoreId = "local";
|
||||
vmDatastoreId = "linstor_storage";
|
||||
cdDatastoreId = "local-lvm";
|
||||
ipv4Gateway = "eth0";
|
||||
ipv4Address = "";
|
||||
# ipv4Address = "95.215.187.${vm-id}";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue