From: Silvio Rhatto Date: Sat, 11 Aug 2012 16:52:34 +0000 (-0300) Subject: Adding ensure parameter X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=61cab6ec0dceb171a148e5cbf31957de15c03de4;p=puppet-bitcoind.git Adding ensure parameter --- 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'] ],