Skip to content

Commit 7ce7895

Browse files
committed
Add CODEOWNERS file and reformat TF files
1 parent 8de8cb7 commit 7ce7895

File tree

6 files changed

+80
-55
lines changed

6 files changed

+80
-55
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This is a comment
2+
# Specify files or directories followed by the owner
3+
* @khanh-ph

README.md

Lines changed: 43 additions & 45 deletions
Large diffs are not rendered by default.

example.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use_legacy_naming_convention = false
1111
# Proxmox VE
1212
########################################################################
1313
# Proxmox VE API details and VM hosting configuration
14-
# API token guide: https://registry.terraform.io/providers/Telmate/proxmox/2.9.14/docs
14+
# API token guide: https://registry.terraform.io/providers/Telmate/proxmox/latest/docs
1515
pm_api_url = "https://your-proxmox-url/api"
1616
pm_api_token_id = "your-api-token-id"
1717
pm_api_token_secret = "your-api-token-secret"

modules/proxmox_ubuntu_vm/.terraform.lock.hcl

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/proxmox_ubuntu_vm/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ resource "proxmox_vm_qemu" "ubuntu_vm" {
3434
disks {
3535
virtio {
3636
virtio0 {
37-
disk {
38-
size = "${var.vm_os_disk_size_gb}G"
39-
storage = var.vm_os_disk_storage
40-
iothread = true
41-
}
37+
disk {
38+
size = "${var.vm_os_disk_size_gb}G"
39+
storage = var.vm_os_disk_storage
40+
iothread = true
4241
}
42+
}
4343

4444
dynamic "virtio1" {
4545
for_each = var.add_worker_node_data_disk ? [var.worker_node_data_disk_size] : []

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ variable "internal_net_subnet_cidr" {
8787

8888
variable "ssh_private_key" {
8989
type = string
90-
description = "SSH private key in base64, will be used by Terraform client to connect to the VM after provisioning"
91-
sensitive = false
90+
description = "SSH private key in base64, will be used by Terraform client to connect to the Kubespray VM after provisioning. We can set its sensitivity to false; otherwise, the output of the Kubespray script will be hidden."
91+
sensitive = true
9292
}
9393

9494
variable "ssh_public_keys" {
9595
type = string
9696
description = "SSH public keys in base64"
97-
sensitive = false
97+
sensitive = false
9898
}
9999

100100
variable "vm_user" {
@@ -193,7 +193,7 @@ variable "create_kubespray_host" {
193193
variable "kubespray_image" {
194194
type = string
195195
description = "The Docker image to deploy Kubespray"
196-
default = "quay.io/kubespray/kubespray:v2.25.0"
196+
default = "quay.io/kubespray/kubespray:v2.25.0"
197197
}
198198

199199
variable "kube_version" {

0 commit comments

Comments
 (0)