summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2019-08-23 13:55:39 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-08-23 13:55:39 +0000
commit645d4f4356a175c12d37abec3128b82bf833448e (patch)
tree877a0a99e70e979abd1fd5019b31a4a6866b58a2 /xci/playbooks/roles
parent4108609cbd83f88e287ddca78e09cc06488c9c0f (diff)
parent635f6b0468110b437740e8cbbe7a8dbc7947397b (diff)
Merge "Support for py3"
Diffstat (limited to 'xci/playbooks/roles')
-rw-r--r--xci/playbooks/roles/create-nodes/files/virtualbmc.conf3
-rw-r--r--xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml12
2 files changed, 14 insertions, 1 deletions
diff --git a/xci/playbooks/roles/create-nodes/files/virtualbmc.conf b/xci/playbooks/roles/create-nodes/files/virtualbmc.conf
new file mode 100644
index 00000000..f8351dc1
--- /dev/null
+++ b/xci/playbooks/roles/create-nodes/files/virtualbmc.conf
@@ -0,0 +1,3 @@
+[log]
+logfile: /var/log/vbmc.log
+debug: true
diff --git a/xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml b/xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml
index faf19a6f..06afaec3 100644
--- a/xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml
+++ b/xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml
@@ -125,5 +125,15 @@
- name: install virtualbmc
pip:
name: virtualbmc
- version: 1.3 # >1.3 needs zmq dependency.
+ version: 1.5 # >1.3 needs zmq dependency.
virtualenv: "{{ lookup('env', 'XCI_VENV') }}"
+
+- name: Create directory for the config of vbmc
+ file:
+ path: /etc/virtualbmc
+ state: directory
+
+- name: Place the config for virtualbmc
+ copy:
+ src: virtualbmc.conf
+ dest: /etc/virtualbmc/virtualbmc.conf