From cc5d3b781a989ad5bd15a7fe6fa03aa418b63a62 Mon Sep 17 00:00:00 2001 From: Guillaume COURS Date: Sat, 24 Jul 2021 15:21:32 +0200 Subject: [PATCH 1/3] fixing empty hiera hash --- data/common.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/common.yaml b/data/common.yaml index ed97d53..2fbf0ff 100644 --- a/data/common.yaml +++ b/data/common.yaml @@ -1 +1 @@ ---- +--- {} From e6e6bcf36dff4f4b6f886e8b0ddfd3b74774a7d4 Mon Sep 17 00:00:00 2001 From: Guillaume COURS Date: Sat, 24 Jul 2021 15:22:25 +0200 Subject: [PATCH 2/3] fixing escape \ in exec command --- manifests/config.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index e9ce50e..8a76916 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -243,7 +243,7 @@ } exec { 'database migration': - onlyif => "${venv_dir}/bin/python3 netbox/manage.py showmigrations | grep '\[ \]'", + onlyif => "${venv_dir}/bin/python3 netbox/manage.py showmigrations | grep '\\[ \\]'", command => "${venv_dir}/bin/python3 netbox/manage.py migrate --no-input", require => File[$config_file], notify => Exec['collect static files'], From 525d5bbb11d1fd408aa9be517c56c3269ab65567 Mon Sep 17 00:00:00 2001 From: Guillaume COURS Date: Sat, 24 Jul 2021 15:23:25 +0200 Subject: [PATCH 3/3] fixing deprecated method postgresql_password to postgresql::postgresql_password --- manifests/database.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/database.pp b/manifests/database.pp index 4725b51..6679883 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -37,7 +37,7 @@ postgresql::server::db { $database_name: user => $database_user, - password => postgresql_password($database_name, $database_password), + password => postgresql::postgresql_password($database_name, $database_password), } postgresql::server::database_grant { 'user_ALL_on_database':