summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-08-11 13:52:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-08-11 13:52:34 -0300
commit61cab6ec0dceb171a148e5cbf31957de15c03de4 (patch)
tree55d2780aec0ee8bfef2edba736c9ae8cb3b27e70
parent6aea39ca5a889ae130575987e89db6e09f0bcdd3 (diff)
downloadpuppet-bitcoind-61cab6ec0dceb171a148e5cbf31957de15c03de4.tar.gz
puppet-bitcoind-61cab6ec0dceb171a148e5cbf31957de15c03de4.tar.bz2
Adding ensure parameter
-rw-r--r--manifests/init.pp4
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'] ],