summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 11:24:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 11:24:59 -0300
commit92bcdf3497bb8b65a20c7bff84808021e5a25d60 (patch)
tree463927d615af7411608e83431b3e19927de6ae8f /manifests
parentfce2a855df65a0a4072aeb2d255eb587f1643782 (diff)
downloadpuppet-bitcoind-92bcdf3497bb8b65a20c7bff84808021e5a25d60.tar.gz
puppet-bitcoind-92bcdf3497bb8b65a20c7bff84808021e5a25d60.tar.bz2
Using hiera
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 684154d..3271d4d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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,
}