Files
packstack-vagrant/files/scripts/nova_fake.sh
Christian Berendt fc415f5067 Add script to enable fake drivers for nova-compute
Change-Id: Ide5cac229d5862a770ec9b4fb71a82cbe114365a
2015-05-07 23:45:54 +02:00

7 lines
307 B
Bash
Executable File

#!/bin/sh
for node in $(sed -n '/<<< Packstack >>>/{:a;n;/>>> Packstack <<</b;p;ba}' /etc/hosts | grep compute | awk '{ print $2 }'); do
ssh $node 'sudo crudini --set /etc/nova/nova.conf DEFAULT compute_driver fake.FakeDriver'
ssh $node 'sudo systemctl restart openstack-nova-compute.service'
done