From 61cab6ec0dceb171a148e5cbf31957de15c03de4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 11 Aug 2012 13:52:34 -0300 Subject: Adding ensure parameter --- manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index b553818..e48bbfe 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,4 +1,4 @@ -class bitcoind($daemon_args = '-daemon', $rpcpassword) { +class bitcoind($daemon_args = '-daemon', $rpcpassword, $ensure = 'running') { package { 'bitcoind': ensure => installed, } @@ -54,7 +54,7 @@ class bitcoind($daemon_args = '-daemon', $rpcpassword) { service { 'bitcoind': enable => true, - ensure => running, + ensure => $ensure, hasrestart => true, hasstatus => false, require => [ Package['bitcoind'], File['/var/lib/bitcoin/.bitcoin/bitcoin.conf', '/etc/init.d/bitcoind'] ], -- cgit v1.2.3