]> gitweb.fluxo.info Git - puppet-bitcoind.git/commitdiff
Using hiera
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 14:24:59 +0000 (11:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 14:24:59 +0000 (11:24 -0300)
manifests/init.pp

index 684154d868afc21b15d8cfb87efc89b60325f6b9..3271d4d3d0ec40e6a1ca7610c0c7c7f6fb36569e 100644 (file)
@@ -1,4 +1,12 @@
-class bitcoind($daemon_args = '-daemon', $rpcpassword, $ensure = 'running') {
+class bitcoind(
+  $daemon_args = hiera('bitcoind::daemon_args,  '-daemon'),
+  $rpcpassword = hiera('bitcoind::rpcpassword', ''),
+  $ensure      = hiera('bitcoind::ensure',      'running')
+) {
+  case $rpcpassword {
+    '': { fail("You need to define etherpad database password! Please set bitcoind::rpcpassword in your config") }
+  }
+
   package { 'bitcoind':
     ensure => installed,
   }