diskimage-builder/elements/nova/os-refresh-config/post-configure.d/74-nova
Tim Miller 0809886571 Add a nova-baremetal element.
Future work is intended to allow this to serve
as a nova-virt element as well, by allowing the config
and which services are run (such as bm-deploy-helper)
based upon metadata config settings.

Change-Id: I59718a0b329e6adc59097492638cf02c76162c0a
2013-04-03 10:45:28 -07:00

22 lines
513 B
Bash
Executable File

#!/bin/bash
set -eux
modprobe nbd || true
chown -R nova:nova /var/log/nova
# TODO: for compute nodes only
mkdir -p /var/run/nova/instances
chown -R nova:nova /var/run/nova
mkdir -p /tftpboot
chown -R nova:nova /tftpboot
service nova-conductor restart
service nova-api restart
service nova-cert restart
service nova-rpc-zmq-receiver restart
service nova-compute restart
service nova-scheduler restart
service nova-consoleauth restart
service nova-baremetal-deploy-helper restart
service nova-bm-dnsmasq restart