-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add output to ip addresses by vms
- Loading branch information
Vincent Dupain
committed
Nov 3, 2024
1 parent
185de0a
commit 89ab61f
Showing
14 changed files
with
100 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
output "cluster_name" { | ||
value = module.talos-k8s-cluster.cluster_name | ||
sensitive = false | ||
} | ||
|
||
output "config_ipv4_addresses" { | ||
value = module.talos-k8s-cluster.config_ipv4_addresses | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
output "cluster_name" { | ||
value = module.talos-k8s-cluster.cluster_name | ||
sensitive = false | ||
} | ||
|
||
output "config_ipv4_addresses" { | ||
value = module.talos-k8s-cluster.config_ipv4_addresses | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
output "cluster_name" { | ||
value = module.talos-k8s-cluster.cluster_name | ||
sensitive = false | ||
} | ||
|
||
output "config_ipv4_addresses" { | ||
value = module.talos-k8s-cluster.config_ipv4_addresses | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module "talos-k8s-cluster" { | ||
source = "vdupain/talos-k8s-cluster/proxmox" | ||
version = "1.0.0-rc5" | ||
|
||
cluster = { | ||
name = "mini-cluster" | ||
gateway = "192.168.10.1" | ||
cidr = 24 | ||
endpoint = "192.168.10.50" | ||
} | ||
|
||
vms = { | ||
"k8s-cp-0" = { | ||
host_node = "pve1" | ||
machine_type = "controlplane" | ||
ip = "192.168.10.50" | ||
cpu = 4 | ||
ram_dedicated = 4096 | ||
os_disk_size = 10 | ||
data_disk_size = 10 | ||
datastore_id = "local-lvm" | ||
install_disk = "/dev/sda" | ||
hostname = "cp-0" | ||
} | ||
} | ||
|
||
proxmox = var.proxmox | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
output "cluster_name" { | ||
value = module.talos-k8s-cluster.cluster_name | ||
sensitive = false | ||
} | ||
|
||
output "config_ipv4_addresses" { | ||
value = module.talos-k8s-cluster.config_ipv4_addresses | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
proxmox = { | ||
endpoint = "https://pve.domain" | ||
insecure = true | ||
username = "user" | ||
password = "password" | ||
api_token = "user@pve!terraform=secret" | ||
} | ||
|
||
github = { | ||
token = "github_pat" | ||
org = "username" | ||
repository = "repository" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
variable "proxmox" { | ||
type = object({ | ||
endpoint = string | ||
insecure = bool | ||
username = string | ||
password = string | ||
api_token = string | ||
}) | ||
sensitive = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters