Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roles/devscripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ networks.
* `cifmw_devscripts_cinder_volume_pvs` (list) a list of physical disks to be
used for creating cinder-volumes volume-group. By default, the list contains
`/dev/vda`.
* `cifmw_devscripts_cpu_passthrough` (bool) Enable host-passthrough cpu model
to virtual machine instead of using QEMU on nested environment. Defaults
to `false`.

### Secrets management

Expand Down
1 change: 1 addition & 0 deletions roles/devscripts/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ cifmw_devscripts_config_overrides: {}
cifmw_devscripts_installer_timeout: 7200 # 2 hours
cifmw_devscripts_etcd_slow_profile: true
cifmw_devscripts_disable_console: false
cifmw_devscripts_cpu_passthrough: false
9 changes: 9 additions & 0 deletions roles/devscripts/tasks/135_patch_src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@
owner: "{{ cifmw_devscripts_user }}"
group: "{{ cifmw_devscripts_user }}"
mode: "0644"

- name: Force KVM domain type in dev-scripts configure to preserve host-passthrough CPU
when:
- cifmw_devscripts_cpu_passthrough | bool
ansible.builtin.lineinfile:
path: "{{ cifmw_devscripts_repo_dir }}/02_configure_host.sh"
insertbefore: '.*-b -vvv.*setup-playbook.yml'
firstmatch: true
line: ' -e "libvirt_domain_type=kvm" \'
Loading