This commit is contained in:
+3
-3
@@ -18,6 +18,7 @@ provider "proxmox" {
|
||||
resource "null_resource" "staging_lxc" {
|
||||
provisioner "local-exec" {
|
||||
command = <<-EOT
|
||||
set -x
|
||||
pct create 200 \
|
||||
${var.lxc_ostemplate} \
|
||||
--hostname hugo-staging \
|
||||
@@ -28,9 +29,8 @@ resource "null_resource" "staging_lxc" {
|
||||
--net0 name=eth0,bridge=${var.lxc_bridge},ip=${var.staging_ip}/24,gw=${var.staging_gw} \
|
||||
--unprivileged 1 \
|
||||
--start 1 \
|
||||
--password '${var.root_password}' \
|
||||
--ssh-public-keys '${var.ssh_public_key}' \
|
||||
2>/dev/null || true
|
||||
--password "${var.root_password}" \
|
||||
--ssh-public-keys "${var.ssh_public_key}"
|
||||
EOT
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user