From 68bbff6199a64dd32739487334260962261f7195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 21 Feb 2018 20:42:04 +0100 Subject: Add xmr-stak --- modules/role/manifests/cryptoportfolio.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/role') 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 } -- cgit v1.2.3