Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Allow custom host kernel params for libguestfs
Browse files Browse the repository at this point in the history
In the libvirt mode of the reproducer script, it may be
very useful to allow customize kernel versions used for
libguestfs commands.

Allow to define those via exported LIBGUESTFS_BACKEND,
SUPERMIN_KERNEL, SUPERMIN_KERNEL_VERSION, SUPERMIN_MODULES
env vars on the virthost.

Change-Id: Ia72b5c2a73e639942dd5182ae8fdc21ab6aa08ef
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
  • Loading branch information
bogdando committed Jun 25, 2018
1 parent 6fed5cb commit b469bc0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion playbooks/libvirt-nodepool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
vars:
- libvirt_nodepool: true
roles:
- libvirt/setup/overcloud
- role: libvirt/setup/overcloud
environment:
SUPERMIN_KERNEL_VERSION: "{{ lookup('env', 'SUPERMIN_KERNEL_VERSION') }}"
SUPERMIN_KERNEL: "{{ lookup('env', 'SUPERMIN_KERNEL') }}"
SUPERMIN_MODULES: "{{ lookup('env', 'SUPERMIN_MODULES') }}"
LIBGUESTFS_BACKEND: "{{ lookup('env', 'LIBGUESTFS_BACKEND') }}"
LIBGUESTFS_BACKEND_SETTINGS: "{{ lookup('env', 'LIBGUESTFS_BACKEND_SETTINGS') }}"
become: true

- name: Add nodes to the generated inventory
Expand Down

0 comments on commit b469bc0

Please sign in to comment.