From 60cd4bd84736d21108aec0f4ab1cd51005241ef5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 27 Feb 2024 01:00:31 -0500 Subject: have the db initialization only depend on the timer service the db initialization depends on the postgres service, which requires any daemon-reload calls to happen before it, but if the cron::job class as a whole depends on db initialization, the service files notify daemon-reload, meaning daemon-reload needs to happen after the files are modified, which creates a conflict --- modules/tozt/manifests/metabase.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tozt/manifests/metabase.pp b/modules/tozt/manifests/metabase.pp index e0d5b39..230d67a 100644 --- a/modules/tozt/manifests/metabase.pp +++ b/modules/tozt/manifests/metabase.pp @@ -44,9 +44,9 @@ class tozt::metabase { Exec["clone metabase-utils"], Secret["/home/doy/.config/ynab/api-key"], Secret["/home/doy/.config/google/investments-sheet"], - Exec["create money db"], ]; } + Exec["create money db"] -> Service["refresh-metabase.timer"] secret { "/home/doy/.config/ynab/api-key": source => "ynab", -- cgit v1.2.3-54-g00ecf