generate or get password if not set in vars

This commit is contained in:
2024-07-25 11:08:37 +02:00
parent 5d5c4bc91a
commit 7b5d51bf81
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
launch += gmysql
gmysql-socket = {{ pdns_mysql_socket }}
gmysql-password = {{ pdns_db_passwd }}
gmysql-password = {{ pdns_db_passwd | default(lookup('password', '/etc/powerdns/pdns.d/.mysqlpw' length=20)) }}
gmysql-dnssec = Yes