From b241c405dada2146d742d3b8fe8c5ede69fe5d24 Mon Sep 17 00:00:00 2001
From: Markos Chandras <mchandras@suse.de>
Date: Wed, 29 Mar 2017 09:09:03 +0100
Subject: [PATCH] prototypes: bifrost: Fix Ironic drivers for VMs

Commit d8235c3c97f4("Set database pool_size in ironic.conf and
inspector.conf templates") added a copy of the ironic.conf.j2
template file to workaround an upstream bug but it also changed
the default ironic drivers leading to broken introspection. We use
virtual BMC for controlling the VMs and this expects ipmi ironic
drivers so we fix that.

Change-Id: Ibb2cc58738ec1693e136bdce7335cd1b861ec613
Fixes: d8235c3c97f4("Set database pool_size in ironic.conf and inspector.conf templates")
Signed-off-by: Markos Chandras <mchandras@suse.de>
---
 bifrost/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bifrost/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2 b/bifrost/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2
index 7debdbcc..d8896fa9 100644
--- a/bifrost/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2
+++ b/bifrost/playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2
@@ -10,7 +10,7 @@
 # control instead of ironic, noop is the only available network driver.
 enabled_network_interfaces = noop
 {% if testing | bool == true %}
-enabled_drivers = agent_ssh,pxe_ssh
+enabled_drivers = agent_ipmitool,pxe_ipmitool
 debug = true
 {% else %}
 enabled_drivers = {{ enabled_drivers }}
-- 
2.16.6