Fix backup VM name for ldap-3
(and potentially other guests where the name differs from the libvirt domain name)
This commit is contained in:
parent
82f50b0caa
commit
6d765f959d
|
@ -38,7 +38,7 @@ cookbook_file "/root/backups/backup_vm.sh" do
|
|||
end
|
||||
|
||||
# Search all guests and filter by presence on current host
|
||||
vm_domains = search(:node, "role:kvm_guest").map(&:name) \
|
||||
vm_domains = search(:node, "role:kvm_guest").map{|n| n["hostname"] } \
|
||||
& `virsh list --name`.strip.chomp.split("\n")
|
||||
|
||||
template "/root/backups/backup_all_vms.sh" do
|
||||
|
|
Loading…
Reference in New Issue