diff options
Diffstat (limited to 'modules/role/manifests')
-rw-r--r-- | modules/role/manifests/cryptoportfolio.pp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 67d88fb..bec247e 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp | |||
@@ -272,7 +272,14 @@ class role::cryptoportfolio { | |||
272 | unless empty($cf_webhook_url) { | 272 | unless empty($cf_webhook_url) { |
273 | exec { "bot-slack-notify": | 273 | exec { "bot-slack-notify": |
274 | refreshonly => true, | 274 | refreshonly => true, |
275 | command => "/usr/local/bin/slack-notify Trader '${cf_webhook_url}' '${bot_version}'", | 275 | environment => [ |
276 | "P_PROJECT=Trader", | ||
277 | "P_WEBHOOK=${cf_webhook_url}", | ||
278 | "P_VERSION=${bot_version}", | ||
279 | "P_HOST=${cf_front_app_host}", | ||
280 | "P_HTTPS=${cf_front_app_ssl}", | ||
281 | ], | ||
282 | command => "/usr/local/bin/slack-notify", | ||
276 | require => File["/usr/local/bin/slack-notify"], | 283 | require => File["/usr/local/bin/slack-notify"], |
277 | subscribe => Exec["py-cryptoportfolio-dependencies"], | 284 | subscribe => Exec["py-cryptoportfolio-dependencies"], |
278 | } | 285 | } |
@@ -407,7 +414,14 @@ class role::cryptoportfolio { | |||
407 | unless empty($cf_webhook_url) { | 414 | unless empty($cf_webhook_url) { |
408 | exec { "front-slack-notify": | 415 | exec { "front-slack-notify": |
409 | refreshonly => true, | 416 | refreshonly => true, |
410 | command => "/usr/local/bin/slack-notify Front '${cf_webhook_url}' '${front_version}'", | 417 | environment => [ |
418 | "P_PROJECT=Front", | ||
419 | "P_WEBHOOK=${cf_webhook_url}", | ||
420 | "P_VERSION=${front_version}", | ||
421 | "P_HOST=${cf_front_app_host}", | ||
422 | "P_HTTPS=${cf_front_app_ssl}", | ||
423 | ], | ||
424 | command => "/usr/local/bin/slack-notify", | ||
411 | require => File["/usr/local/bin/slack-notify"], | 425 | require => File["/usr/local/bin/slack-notify"], |
412 | subscribe => [Exec["go-cryptoportfolio-app"], Exec["web-cryptoportfolio-build"]], | 426 | subscribe => [Exec["go-cryptoportfolio-app"], Exec["web-cryptoportfolio-build"]], |
413 | } | 427 | } |