summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-02-27 01:00:31 -0500
committerJesse Luehrs <doy@tozt.net>2024-02-27 01:00:31 -0500
commit60cd4bd84736d21108aec0f4ab1cd51005241ef5 (patch)
tree8e06c5eec5ab05a6dc9ef047e8d01600e8e02674
parentf19a88f6fb01a33bfd2ead3524123b948e9ff64e (diff)
downloadpuppet-tozt-60cd4bd84736d21108aec0f4ab1cd51005241ef5.tar.gz
puppet-tozt-60cd4bd84736d21108aec0f4ab1cd51005241ef5.zip
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
-rw-r--r--modules/tozt/manifests/metabase.pp2
1 files changed, 1 insertions, 1 deletions
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",