The vedir override may be needed in the case where the host filesystem symlinks /vz to another filesystem. In this case, Puppet's mount type is unable to detect the filesystem is mounted and this work-around can be used.
For example:
akosmin@echo:~$ ls -ld /vz
lrwxrwxrwx 1 root root 7 Jul 19 19:52 /vz -> /u01/vz
akosmin@echo:~$ mount | grep u01
/dev/mapper/vg0-lv0 on /u01 type ext4 (rw)
The vedir override may be needed in the case where the host filesystem symlinks /vz to another filesystem. In this case, Puppet's mount type is unable to detect the filesystem is mounted and this work-around can be used.
For example:
akosmin@echo:~$ ls -ld /vz lrwxrwxrwx 1 root root 7 Jul 19 19:52 /vz -> /u01/vz akosmin@echo:~$ mount | grep u01 /dev/mapper/vg0-lv0 on /u01 type ext4 (rw)
This works by using the following manifest:
virt::ve { oreo: os_template => "debian-6.0-${architecture}-reliant", tmpl_repo => 'http://foobar.reliantsec.net/mirrors/openvz_templates/', ipaddr => '10.250.250.81', nameserver => '10.250.250.5', lvm_pv => '/dev/sdb2', lvm_size => '10G', memory => 1024, vedir_override => '/u01/vz', require => Iptables[nat-ves, forward-out-ves, forward-in-ves], }