Skip to content

Commit

Permalink
#35 template container for Ansible target
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsaderholm committed Jun 29, 2021
1 parent 09adc6c commit f007be1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions terraform/test_lxc_instance.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
resource "proxmox_lxc" "basic" {
count = 1
target_node = "pve1"
hostname = "provisioning-template-${count.index}.magevent.net"
ostemplate = "wowza:vztmpl/ubuntu-20.04-standard_20.04-1_amd64.tar.gz"
ssh_public_keys = var.common.ssh_public_keys
unprivileged = true

// Terraform will crash without rootfs defined
rootfs {
storage = "ceph"
size = "8G"
}

network {
name = "eth0"
ip = "dhcp"
bridge = var.network.magcloud.bridge_id
gw = var.network.magcloud.gateway
firewall = var.network.magcloud.firewall
tag = var.network.magcloud.vlan_id
}
}

0 comments on commit f007be1

Please sign in to comment.