diff options
-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'] ], |