diff --git a/README.md b/README.md index 98e28dd..1ce7688 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,9 @@ Terraform modules which creates Virtual Machines on Harvester HCI | harvester_kubeconfig_path | Path to the kubeconfig file | `string` | n/a | yes | | image_display_name | The display name for the OS image | `string` | n/a | yes | | image_name | The name of the OS image | `string` | n/a | yes | -| image_namespace | The namespace where the image will reside | `string` | n/a | yes | | image_source_type | Source type for the image (e.g., download, upload) | `string` | n/a | yes | | image_url | URL from where the image will be downloaded | `string` | n/a | yes | | network_name | Name of the network | `string` | n/a | yes | -| network_namespace | Namespace of the network | `string` | n/a | yes | | network_vlan_id | VLAN ID for the network | `string` | n/a | yes | | user_data | User data for cloud-init configuration | `string` | n/a | yes | | vm_cpus | Number of CPUs for the VM | `number` | n/a | yes | @@ -43,9 +41,11 @@ Terraform modules which creates Virtual Machines on Harvester HCI | vm_hostname | Hostname for the virtual machine | `string` | n/a | yes | | vm_memory | Memory allocation for the VM | `string` | n/a | yes | | vm_name | Name of the virtual machine | `string` | n/a | yes | -| vm_namespace | Namespace where the VM will reside | `string` | n/a | yes | +| image_namespace | The namespace where the image will reside | `string` | `"default"` | no | | image_tags | Tags associated with the image | `map(string)` | `{}` | no | | network_data | Network data for cloud-init configuration | `string` | `""` | no | +| network_namespace | Namespace of the network | `string` | `"default"` | no | +| vm_namespace | Namespace where the VM will reside | `string` | `"default"` | no | | vm_tags | Tags associated with the VM | `map(string)` | `{}` | no | ## Outputs diff --git a/modules/harvester-vm-image/README.md b/modules/harvester-vm-image/README.md index 8e50fea..787c91c 100644 --- a/modules/harvester-vm-image/README.md +++ b/modules/harvester-vm-image/README.md @@ -21,10 +21,10 @@ |------|-------------|------|---------|:--------:| | display_name | The display name for the OS image | `string` | n/a | yes | | name | The name of the OS image | `string` | n/a | yes | -| namespace | The namespace where the image will reside | `string` | n/a | yes | | source_type | Source type for the image (e.g., download, upload) | `string` | n/a | yes | | url | URL from where the image will be downloaded | `string` | n/a | yes | | description | Any text you want that better describes this resource | `string` | `""` | no | +| namespace | The namespace where the image will reside | `string` | `"default"` | no | | pvc_name | PVC Name | `string` | `""` | no | | pvc_namespace | PVC Namespace | `string` | `""` | no | | storage_class_name | The name of the storage class | `string` | `""` | no | diff --git a/modules/harvester-vm-image/variables.tf b/modules/harvester-vm-image/variables.tf index 336b4db..4ecaa80 100644 --- a/modules/harvester-vm-image/variables.tf +++ b/modules/harvester-vm-image/variables.tf @@ -6,6 +6,7 @@ variable "name" { variable "namespace" { description = "The namespace where the image will reside" type = string + default = "default" } variable "display_name" { diff --git a/modules/harvester-vm-network/README.md b/modules/harvester-vm-network/README.md index f6e4d4b..d9c78b8 100644 --- a/modules/harvester-vm-network/README.md +++ b/modules/harvester-vm-network/README.md @@ -21,8 +21,8 @@ |------|-------------|------|---------|:--------:| | cluster_network_name | Cluster network name | `string` | n/a | yes | | name | Name of the network | `string` | n/a | yes | -| namespace | Namespace of the network | `string` | n/a | yes | | vlan_id | VLAN ID for the network | `string` | n/a | yes | +| namespace | Namespace of the network | `string` | `"default"` | no | ## Outputs diff --git a/modules/harvester-vm-network/variables.tf b/modules/harvester-vm-network/variables.tf index 05ced69..e2119ab 100644 --- a/modules/harvester-vm-network/variables.tf +++ b/modules/harvester-vm-network/variables.tf @@ -16,4 +16,5 @@ variable "name" { variable "namespace" { description = "Namespace of the network" type = string + default = "default" } diff --git a/modules/harvester-vm/README.md b/modules/harvester-vm/README.md index 6e1ca79..9a38d3f 100644 --- a/modules/harvester-vm/README.md +++ b/modules/harvester-vm/README.md @@ -24,11 +24,11 @@ | hostname | Hostname of the virtual machine | `string` | n/a | yes | | memory | Memory for the virtual machine (e.g., 2048M or 2G) | `string` | n/a | yes | | name | Name of the virtual machine | `string` | n/a | yes | -| namespace | Namespace of the virtual machine | `string` | n/a | yes | | network_name | Name of the network for the virtual machine | `string` | n/a | yes | | user_data | User data for cloud-init configuration | `string` | n/a | yes | | vm_image_id | The ID of the VM image | `string` | n/a | yes | | disks | List of disks for the virtual machine | ```list(object({ name = string type = string size = string bus = string boot_order = number auto_delete = bool }))``` | `[]` | no | +| namespace | Namespace of the virtual machine | `string` | `"default"` | no | | network_data | Network data for cloud-init configuration | `string` | `""` | no | | tags | Tags for the virtual machine | `map(string)` | `{}` | no | diff --git a/modules/harvester-vm/variables.tf b/modules/harvester-vm/variables.tf index 37862ee..950685c 100644 --- a/modules/harvester-vm/variables.tf +++ b/modules/harvester-vm/variables.tf @@ -6,6 +6,7 @@ variable "name" { variable "namespace" { description = "Namespace of the virtual machine" type = string + default = "default" } variable "description" { diff --git a/variables.tf b/variables.tf index 4fe746d..00906c4 100644 --- a/variables.tf +++ b/variables.tf @@ -22,6 +22,7 @@ variable "network_name" { variable "network_namespace" { description = "Namespace of the network" type = string + default = "default" } @@ -33,6 +34,7 @@ variable "image_name" { variable "image_namespace" { description = "The namespace where the image will reside" type = string + default = "default" } variable "image_display_name" { @@ -74,6 +76,7 @@ variable "vm_hostname" { variable "vm_namespace" { description = "Namespace where the VM will reside" type = string + default = "default" } variable "vm_description" {