diff --git a/manifests/backends/postgresql.pp b/manifests/backends/postgresql.pp index 6da683f..41ab380 100644 --- a/manifests/backends/postgresql.pp +++ b/manifests/backends/postgresql.pp @@ -81,12 +81,14 @@ } if $powerdns::backend_create_tables { - $password_hash = $db_password ? { + $password_hash = $powerdns::db_password ? { Undef => undef, default => postgresql::postgresql_password($powerdns::db_username, $_db_password), } + postgresql::server::db { $powerdns::db_name: user => $powerdns::db_username, + owner => $powerdns::db_username, password => $password_hash, require => Package[$powerdns::params::pgsql_backend_package_name], } diff --git a/metadata.json b/metadata.json index 8c30982..33ab482 100644 --- a/metadata.json +++ b/metadata.json @@ -58,7 +58,8 @@ { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ - "18.04" + "18.04", + "24.04" ] }, { @@ -83,4 +84,4 @@ "pdk-version": "3.0.1", "template-url": "pdk-default#3.0.1", "template-ref": "tags/3.0.1-0-gd13288a" -} \ No newline at end of file +}