diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-11 13:52:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-11 13:52:34 -0300 |
commit | 61cab6ec0dceb171a148e5cbf31957de15c03de4 (patch) | |
tree | 55d2780aec0ee8bfef2edba736c9ae8cb3b27e70 | |
parent | 6aea39ca5a889ae130575987e89db6e09f0bcdd3 (diff) | |
download | puppet-bitcoind-61cab6ec0dceb171a148e5cbf31957de15c03de4.tar.gz puppet-bitcoind-61cab6ec0dceb171a148e5cbf31957de15c03de4.tar.bz2 |
Adding ensure parameter
-rw-r--r-- | manifests/init.pp | 4 |
1 files 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'] ], |