Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
554 B

  1. lxc.include = /usr/share/lxc/config/debian.common.conf
  2. lxc.uts.name = {{ vm_name }}
  3. lxc.rootfs.path = lvm:/dev/{{ vg_name }}/vm_{{ vm_name }}
  4. lxc.apparmor.profile = generated
  5. lxc.apparmor.allow_nesting = 1
  6. lxc.tty.max = 4
  7. lxc.arch = amd64
  8. lxc.pty.max = 1024
  9. lxc.net.0.type = veth
  10. lxc.net.0.flags = up
  11. lxc.net.0.link = br0
  12. lxc.net.0.name = eth0
  13. lxc.net.0.ipv4.address = {{ hostvars | ip_from_inventory(vm_name) }}/24
  14. lxc.net.0.ipv4.gateway = {{ hostvars | ip_from_inventory('vm_gateway') }}
  15. lxc.start.auto = {% if auto_start %}1{% else %}0{% endif %}