@@ -73,3 +73,80 @@ libvirt_host_install_daemon: true
73
73
74
74
# Whether to install and enable the libvirt client.
75
75
libvirt_host_install_client : true
76
+
77
+ # List of additional packages to install on libvirt daemon hosts.
78
+ libvirt_host_extra_daemon_packages : []
79
+
80
+ # List of additional packages to install on libvirt client hosts.
81
+ libvirt_host_extra_client_packages : []
82
+
83
+ # Whether to configure libvirtd.conf.
84
+ libvirt_host_libvirtd_conf_enabled : true
85
+ # Configuration for libvirtd.conf. Dict mapping option names to values.
86
+ libvirt_host_libvirtd_conf : {}
87
+
88
+ # Whether to configure qemu.conf.
89
+ libvirt_host_qemu_conf_enabled : true
90
+ # Configuration for qemu.conf. Dict mapping option names to values.
91
+ libvirt_host_qemu_conf : {}
92
+
93
+ # Whether to enable SASL authentication support.
94
+ libvirt_host_enable_sasl_support : false
95
+
96
+ # Whether to configure SASL authentication (/etc/sasl2/libvirt.conf).
97
+ libvirt_host_sasl_conf_enabled : " {{ libvirt_host_enable_sasl_support | bool }}"
98
+ # Configuration for SASL authentication (/etc/sasl2/libvirt.conf). String.
99
+ libvirt_host_sasl_conf : |
100
+ mech_list: {{ libvirt_host_sasl_mech_list | join(' ') }}
101
+ sasldb_path: /etc/libvirt/passwd.db
102
+ # List of enabled libvirt SASL authentication mechanisms.
103
+ libvirt_host_sasl_mech_list :
104
+ - " {{ 'SCRAM-SHA-256' if libvirt_host_tls_listen | bool else 'DIGEST-MD5' }}"
105
+
106
+ # List of SASL authentication credentials to create. Each item is a dict
107
+ # containing "username" and "password" items.
108
+ libvirt_host_sasl_credentials :
109
+ - username : " {{ libvirt_host_sasl_authname }}"
110
+ password : " {{ libvirt_host_sasl_password }}"
111
+ # Username for SASL authentication.
112
+ libvirt_host_sasl_authname : libvirt
113
+ # Password for SASL authentication.
114
+ libvirt_host_sasl_password :
115
+
116
+ # Whether to configure SASL authentication credentials (/etc/libvirt/auth.conf).
117
+ libvirt_host_sasl_auth_conf_enabled : " {{ libvirt_host_enable_sasl_support | bool }}"
118
+ # Configuration for SASL authentication credentials (/etc/libvirt/auth.conf). String.
119
+ libvirt_host_sasl_auth_conf : |
120
+ [credentials-default]
121
+ authname={{ libvirt_host_sasl_authname }}
122
+ password={{ libvirt_host_sasl_password }}
123
+
124
+ [auth-libvirt-default]
125
+ credentials=default
126
+ # Name of file to write SASL authentication credentials to.
127
+ libvirt_host_sasl_auth_conf_filename : " /etc/libvirt/auth.conf"
128
+ # Owner of file to write SASL authentication credentials to.
129
+ libvirt_host_sasl_auth_conf_owner : " root"
130
+ # Group of file to write SASL authentication credentials to.
131
+ libvirt_host_sasl_auth_conf_group : " root"
132
+ # Mode of file to write SASL authentication credentials to.
133
+ libvirt_host_sasl_auth_conf_mode : " 0600"
134
+
135
+ # Whether to enable the systemd TCP socket unit.
136
+ libvirt_host_tcp_listen : false
137
+ # Systemd TCP socket ListenStream. See man systemd.socket for format.
138
+ libvirt_host_tcp_listen_address :
139
+
140
+ # Whether to enable the systemd TLS socket unit.
141
+ libvirt_host_tls_listen : false
142
+ # Systemd TLS socket ListenStream. See man systemd.socket for format.
143
+ libvirt_host_tls_listen_address :
144
+ # TLS server and client certificates.
145
+ libvirt_host_tls_server_cert :
146
+ libvirt_host_tls_server_key :
147
+ libvirt_host_tls_client_cert :
148
+ libvirt_host_tls_client_key :
149
+ libvirt_host_tls_cacert :
150
+
151
+ # Whether to configure AppArmor for directory storage pools.
152
+ libvirt_host_configure_apparmor : " {{ libvirt_host_install_daemon | bool }}"
0 commit comments