]> gitweb.fluxo.info Git - puppet-bitcoind.git/commitdiff
Adding ensure parameter
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 11 Aug 2012 16:52:34 +0000 (13:52 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 11 Aug 2012 16:52:34 +0000 (13:52 -0300)
manifests/init.pp

index b553818a708903fbe484062b07666375130686aa..e48bbfe8a24997dbfd263f84614e338a02fbfa1f 100644 (file)
@@ -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'] ],