X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Frole%2Fmanifests%2Fcryptoportfolio%2Ffront.pp;h=f969cd745f4e0cf128810b311e64142f011b7c99;hb=19c467dccfd00193a66f1341f068987da7bca14b;hp=aa57f4e16e3f581239b67cde93e20992b9742380;hpb=a859ab30660104d25485824afa1c23de454bb5ed;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/role/manifests/cryptoportfolio/front.pp b/modules/role/manifests/cryptoportfolio/front.pp index aa57f4e..f969cd7 100644 --- a/modules/role/manifests/cryptoportfolio/front.pp +++ b/modules/role/manifests/cryptoportfolio/front.pp @@ -6,7 +6,7 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { $password_seed = lookup("base_installation::puppet_pass_seed") - $cf_front_app = "${home}/go/src/immae.eu/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front" + $cf_front_app = "${home}/go/src/git.immae.eu/Cryptoportfolio/Front" $cf_front_app_api_workdir = "${cf_front_app}/cmd/app" $cf_front_app_api_bin = "${cf_front_app_api_workdir}/cryptoportfolio-app" $cf_front_app_api_conf = "${home}/conf.toml" @@ -23,11 +23,8 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio { file { [ "${home}/go/", "${home}/go/src", - "${home}/go/src/immae.eu", - "${home}/go/src/immae.eu/Immae", - "${home}/go/src/immae.eu/Immae/Projets", - "${home}/go/src/immae.eu/Immae/Projets/Cryptomonnaies", - "${home}/go/src/immae.eu/Immae/Projets/Cryptomonnaies/Cryptoportfolio", + "${home}/go/src/git.immae.eu", + "${home}/go/src/git.immae.eu/Cryptoportfolio", $cf_front_app]: ensure => "directory", mode => "0700", @@ -68,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, @@ -190,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" + } + } }