@@ -90,6 +90,48 @@ libvirt_host_qemu_conf_enabled: true
90
90
# Configuration for qemu.conf. Dict mapping option names to values.
91
91
libvirt_host_qemu_conf : {}
92
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
+
93
135
# Whether to enable the systemd TCP socket unit.
94
136
libvirt_host_tcp_listen : false
95
137
# Systemd TCP socket ListenStream. See man systemd.socket for format.
0 commit comments