tripleo-image-elements/elements/nova-compute/install.d/nova-package-install/80-nova-compute
Ben Nemec 97f9fbed77 Allow os-svc-daemon to specify dir name with -d option
In some circumstances we need to be able to create a /var/run
directory without actually installing a service.  This behavior
was supported before, but these changes allow the user to specify
the directory name and streamline the process by making -c an
optional parameter instead of requiring a dummy value.  It also
makes this functionality available on upstart-based systems.

The existing uses of -d had to be updated as well to reflect this
new behavior.

Change-Id: I34f33f2290eeefb5be82c0cf5198ae53d34332ce
2014-03-25 13:53:59 -05:00

15 lines
484 B
Bash
Executable File

#!/bin/bash
set -eux
install-packages openstack-nova-compute
# We delete the default libvirt network to avoid a possible
# collision with the network on the seed host machine
# This is also done from the nova-kvm element, but we need to do it here as
# well, since the nova compute packages automatically pull in libvirt.
rm -f /etc/libvirt/qemu/networks/autostart/default.xml
rm -f /etc/libvirt/qemu/networks/default.xml
os-svc-daemon -i "$NOVA_VENV_DIR" -n nova-compute -u nova