Merge "Add host_uuid to libvirtd.conf"

This commit is contained in:
Jenkins 2014-10-20 11:57:07 +00:00 committed by Gerrit Code Review
commit 2053f7ebd4

View File

@ -221,6 +221,17 @@ class openstack::compute (
notify => Service['libvirt'],
}
$host_uuid=generate('/bin/sh', '-c', "uuidgen")
augeas { 'libvirt-conf-uuid':
context => '/files/etc/libvirt/libvirtd.conf',
changes => [
"set host_uuid $host_uuid",
],
onlyif => "match /files/etc/libvirt/libvirtd.conf/host_uuid size == 0",
notify => Service['libvirt'],
}
$memcached_addresses = suffix($cache_server_ip, inline_template(":<%= @cache_server_port %>"))
$notify_on_state_change = 'vm_and_task_state'