newLXC
This commit is contained in:
@@ -2,4 +2,5 @@ proxmox_api_url= "https://192.168.1.155:8006/api2/json"
|
|||||||
proxmox_api_token_id= "root@pam!TerraDemo"
|
proxmox_api_token_id= "root@pam!TerraDemo"
|
||||||
proxmox_api_token_secret= "bde46db3-defa-4dd6-b2d8-958ab6d202ba"
|
proxmox_api_token_secret= "bde46db3-defa-4dd6-b2d8-958ab6d202ba"
|
||||||
root_password = "Zakaria1986!!!"
|
root_password = "Zakaria1986!!!"
|
||||||
ssh_public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO65p1xPly/h1Pso+G44zFnIBX2x7OfrZkXIb22JmW8J k_ansible"
|
ssh_public_key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO65p1xPly/h1Pso+G44zFnIBX2x7OfrZkXIb22JmW8J k_ansible"
|
||||||
|
instance_id = 9999
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
resource "proxmox_lxc" "TerraPhore" {
|
resource "proxmox_lxc" "TerraPhore" {
|
||||||
target_node = "ThePearl"
|
target_node = "ThePearl"
|
||||||
hostname = "lxc-secondDemo"
|
hostname = "lxc-secondDemo-${var.instance_id}"
|
||||||
ostemplate = "local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst"
|
ostemplate = "local:vztmpl/ubuntu-24.04-standard_24.04-2_amd64.tar.zst"
|
||||||
password = var.root_password
|
password = var.root_password
|
||||||
unprivileged = true
|
unprivileged = true
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ terraform {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "instance_id" {
|
||||||
|
type = number
|
||||||
|
}
|
||||||
|
|
||||||
variable "root_password" {
|
variable "root_password" {
|
||||||
type = string
|
type = string
|
||||||
sensitive = true
|
sensitive = true
|
||||||
|
|||||||
Reference in New Issue
Block a user