X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=modules%2Frole%2Fmanifests%2Fcryptoportfolio%2Ffront.pp;h=f969cd745f4e0cf128810b311e64142f011b7c99;hb=19c467dccfd00193a66f1341f068987da7bca14b;hp=0aa419fe47d64f246780e7c7f73e0a3fefe0a3bc;hpb=cc54396280acf37ee5bd5b2ddf75c6cc97ed1c05;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/role/manifests/cryptoportfolio/front.pp b/modules/role/manifests/cryptoportfolio/front.pp index 0aa419f..f969cd7 100644 --- a/modules/role/manifests/cryptoportfolio/front.pp +++ b/modules/role/manifests/cryptoportfolio/front.pp @@ -33,13 +33,6 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { require => User["$user:"], } - # Cleanup of old directories - file { "${home}/go/src/immae.eu": - ensure => "absent", - force => true, - backup => false, - } - file { "${home}/front": ensure => "link", target => $cf_front_app, @@ -72,7 +65,7 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { archive { "${home}/front_${front_version}.tar.gz": path => "${home}/front_${front_version}.tar.gz", - source => "https://git.immae.eu/releases/cryptoportfolio/front/front_${front_version}.tar.gz", + source => "https://release.immae.eu/cryptoportfolio/front/front_${front_version}.tar.gz", checksum_type => "sha256", checksum => $front_sha256, cleanup => false, @@ -194,4 +187,16 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { } } + @profile::monitoring::external_service { "Cryptoportfolio website is running on $web_host": + type => "web", + master => { + check_command => "check_https!$web_host!/!Cryptoportfolio" + } + } + @profile::monitoring::external_service { "$web_host ssl certificate is up to date": + type => "web", + master => { + check_command => "check_https_certificate!$web_host" + } + } }