X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Frole%2Fmanifests%2Fcryptoportfolio.pp;h=5860f90a8163b1c796df9cbbc5474e951bb60a26;hb=68bbff6199a64dd32739487334260962261f7195;hp=9a2bfd2e54c2eae98f9c62e875349ec8ea31d7f3;hpb=5de12d78299821e8ed09c492fa884e9742ed95d6;p=perso%2FImmae%2FProjets%2FPuppet.git diff --git a/modules/role/manifests/cryptoportfolio.pp b/modules/role/manifests/cryptoportfolio.pp index 9a2bfd2..5860f90 100644 --- a/modules/role/manifests/cryptoportfolio.pp +++ b/modules/role/manifests/cryptoportfolio.pp @@ -1,9 +1,15 @@ class role::cryptoportfolio { + ensure_resource('exec', 'systemctl daemon-reload', { + command => '/usr/bin/systemctl daemon-reload', + refreshonly => true + }) + include "base_installation" include "profile::tools" include "profile::postgresql" include "profile::apache" + include "profile::xmr_stak" $password_seed = lookup("base_installation::puppet_pass_seed") |$key| { {} } @@ -244,9 +250,7 @@ class role::cryptoportfolio { owner => "root", group => "root", content => template("role/cryptoportfolio/cryptoportfolio-app.service.erb"), - } ~> exec { 'systemctl deamon-reload': - command => '/usr/bin/systemctl daemon-reload', - refreshonly => true + notify => Exec["systemctl daemon-reload"], } service { 'cryptoportfolio-app': @@ -303,6 +307,4 @@ class role::cryptoportfolio { require => [File[$cf_front_app_static_conf], Exec["web-cryptoportfolio-dependencies"]] } } - - # TODO: xmr_stack }