Add host_uuid to libvirtd.conf
Add host_uuid generated by uuidgen to libvirtd.conf Change-Id: I238652e0a42fc3e15fd6cf7416343fb900336784 Closes-Bug: 1378962
This commit is contained in:
parent
7019f8d901
commit
63636d1151
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user