summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles
diff options
context:
space:
mode:
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/baremetalhoststojson.yml6
-rw-r--r--xci/playbooks/roles/create-nodes/tasks/prepare_libvirt.yml12
3 files changed, 17 insertions, 4 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/baremetalhoststojson.yml b/xci/playbooks/roles/create-nodes/tasks/baremetalhoststojson.yml
index 740bfac6..ef6ec345 100644
--- a/xci/playbooks/roles/create-nodes/tasks/baremetalhoststojson.yml
+++ b/xci/playbooks/roles/create-nodes/tasks/baremetalhoststojson.yml
@@ -29,15 +29,15 @@
block:
- set_fact:
- node_name: idf.kubespray.hostnames[item.name]
+ node_name: "{{ idf.kubespray.hostnames[item.name] }}"
when: installer_type == "kubespray"
- set_fact:
- node_name: idf.osa.hostnames[item.name]
+ node_name: "{{ idf.osa.hostnames[item.name] }}"
when: installer_type == "osa"
- set_fact:
- node_name: idf.osh.hostnames[item.name]
+ node_name: "{{ idf.osh.hostnames[item.name] }}"
when: installer_type == "osh"
- set_fact:
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