This patch adds libvirt-qpid to the node image and sets it up so it will connect to the server in the given DNS SRV record. Signed-off-by: Ian Main <imain at redhat.com> --- ovirt-node.spec.in | 1 + scripts/ovirt | 10 ++++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ovirt-node.spec.in b/ovirt-node.spec.in index be8d8f5..3dc4e1d 100644 --- a/ovirt-node.spec.in +++ b/ovirt-node.spec.in @@ -14,6 +14,7 @@ BuildRequires: libvirt-devel BuildRequires: dbus-devel hal-devel Requires: augeas Requires: libvirt +Requires: libvirt-qpid Requires: hal Requires: collectd Requires: cyrus-sasl-gssapi diff --git a/scripts/ovirt b/scripts/ovirt index d81a72e..3c120a0 100644 --- a/scripts/ovirt +++ b/scripts/ovirt @@ -76,6 +76,16 @@ start() { else echo "skipping collectd configuration, collectd service not available" fi + + find_srv qpidd tcp + if [ -n "$SRV_HOST" -a -n "$SRV_PORT" ]; then + libvirt_qpid_conf=/etc/sysconfig/libvirt-qpid + if [ -f $libvirt_qpid_conf ]; then + echo "LIBVIRT_QPID_ARGS=\"--broker $SRV_HOST --port $SRV_PORT\"" >> $libvirt_qpid_conf + fi + else + echo "skipping libvirt-qpid configuration, could not find $libvirt_qpid_conf" + fi } case "$1" in -- 1.5.5.1