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