]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio/front.pp
wait for journal rather than polling
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio / front.pp
index a6b25c4dc484a641c5717c2d90fe9d5095bece78..aa57f4e16e3f581239b67cde93e20992b9742380 100644 (file)
@@ -145,10 +145,13 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
 
   # Slack logger
   $slack_logger = lookup("role::cryptoportfolio::front::slack_logger")
+  $slack_logger_username = lookup("role::cryptoportfolio::front::slack_logger_username", { "default_value" =>  "Logger" })
+
   unless empty($slack_logger) {
     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":
@@ -156,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':