diff --git a/inventory_example.ini b/inventory_example.ini deleted file mode 100644 index d147fa2..0000000 --- a/inventory_example.ini +++ /dev/null @@ -1,29 +0,0 @@ -[promox-kvm] -192.168.122.10 -192.168.122.11 - -[promox-kvm:vars] -vm_gw=192.168.122.1 -vm_dns=1.1.1.1 - -[192.168.122.10] -hostname=proxy -vm_id=300 -os=archlinux -filesystem=btrfs -vm_memory=2048 -vm_ballo=1024 -vm_cpus=2 -vm_size=5 -vm_nif=vmbr1 - -[192.168.122.11] -hostname=database -vm_id=101 -os=archlinux -filesystem=btrfs -vm_memory=6144 -vm_ballo=3072 -vm_cpus=4 -vm_size=40 -vm_nif=vmbr1 \ No newline at end of file diff --git a/roles/configuration/templates/network.j2 b/roles/configuration/templates/network.j2 index aad6fd8..a57c52f 100644 --- a/roles/configuration/templates/network.j2 +++ b/roles/configuration/templates/network.j2 @@ -2,7 +2,9 @@ id=LAN uuid={{ net_uuid.stdout }} type=ethernet -interface-name={{ net_inf.stdout }} + +[ethernet] +mac-address={{ net_mac.stdout }} [ipv4] address={{ vm_ip }}/{{ vm_nms | default (24) }},{{ vm_gw }}