9111328e8a
By default, Ansible injects a variable for every fact, prefixed with ansible_. This can result in a large number of variables for each host, which at scale can incur a performance penalty. Ansible provides a configuration option [0] that can be set to False to prevent this injection of facts. In this case, facts should be referenced via ansible_facts.<fact>. This change updates all references to Ansible facts within Tenks from using individual fact variables to using the items in the ansible_facts dictionary. This allows users to disable fact variable injection in their Ansible configuration, which may provide some performance improvement. This change disables fact variable injection in the ansible configuration used in CI, to catch any attempts to use the injected variables. [0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars Change-Id: I4831769909c341c72bb178daf8df3309773a56ad Co-Authored-By: Radosław Piliszek <radoslaw.piliszek@gmail.com>
37 lines
1.4 KiB
Plaintext
37 lines
1.4 KiB
Plaintext
---
|
|
libvirt_pool_name: tenks
|
|
libvirt_pool_path: /var/lib/libvirt/tenks_pool/
|
|
libvirt_pool_type: dir
|
|
# Capacity is irrelevant for directory-based pools.
|
|
libvirt_pool_capacity:
|
|
libvirt_pool_mode: 755
|
|
libvirt_pool_owner: "{{ ansible_facts.user_id }}"
|
|
libvirt_pool_group: "{{ ansible_facts.user_id }}"
|
|
|
|
# By default, allow QEMU without hardware virtualisation since this is a
|
|
# development tool.
|
|
libvirt_require_vt: false
|
|
|
|
# This determines the libvirt unix_sock_dir configuration option. You can set
|
|
# this option to the empty string if you want to use the default location. The
|
|
# main use case is to run multiple instances of libvirt side-by-side.
|
|
libvirt_custom_socket_path: ""
|
|
|
|
# Sets the path to the libvirtd PID file. You will need to change this if you
|
|
# want to run multiple instances of the libvirt daemon side-by-side.
|
|
libvirt_custom_pid_path: >-
|
|
{%- if libvirt_custom_socket_path -%}
|
|
{{ libvirt_custom_socket_path }}/libvirt.pid
|
|
{%- endif -%}
|
|
|
|
# This controls the libvirt connection URI. This value is used on commands run
|
|
# on the hypervisor (as opposed to remote connections).
|
|
libvirt_local_uri: >-
|
|
{%- if libvirt_custom_socket_path -%}
|
|
qemu+unix:///system?socket={{ libvirt_custom_socket_path }}/libvirt-sock
|
|
{%- endif %}
|
|
|
|
# Whether to trust the receive filters of Tenks VMs. This gets mapped to the
|
|
# trustGuestRxFilters' attribute of VM interfaces.
|
|
libvirt_vm_trust_guest_rx_filters: true
|