From a859ab30660104d25485824afa1c23de454bb5ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 13 May 2018 15:41:16 +0200 Subject: wait for journal rather than polling --- modules/role/manifests/cryptoportfolio/front.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/role/manifests') diff --git a/modules/role/manifests/cryptoportfolio/front.pp b/modules/role/manifests/cryptoportfolio/front.pp index 3612fd5..aa57f4e 100644 --- a/modules/role/manifests/cryptoportfolio/front.pp +++ b/modules/role/manifests/cryptoportfolio/front.pp @@ -151,6 +151,7 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { file { "/usr/local/bin/api_logger": mode => "0755", content => template("role/cryptoportfolio/api_logger.py.erb"), + notify => Service["cryptoportfolio-log"], } -> file { "/etc/systemd/system/cryptoportfolio-log.service": @@ -158,7 +159,10 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { owner => "root", group => "root", content => template("role/cryptoportfolio/cryptoportfolio-log.service.erb"), - notify => Exec["systemctl daemon-reload"], + notify => [ + Exec["systemctl daemon-reload"], + Service["cryptoportfolio-log"] + ] } -> service { 'cryptoportfolio-log': -- cgit v1.2.3