diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-09 19:37:20 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-09 20:24:55 +0100 |
commit | bd263a98d542207c07b27dfb891e62b9e2c73c3d (patch) | |
tree | bdd9c78db130429d1aea769cbd8bfb93a7904aac /modules/role/manifests | |
parent | 764515b85346b43aa1268f5e86b99653f7dcccb0 (diff) | |
download | Puppet-bd263a98d542207c07b27dfb891e62b9e2c73c3d.tar.gz Puppet-bd263a98d542207c07b27dfb891e62b9e2c73c3d.tar.zst Puppet-bd263a98d542207c07b27dfb891e62b9e2c73c3d.zip |
Change deploy script
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 | } |