aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 16:21:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 16:21:15 -0300
commite55f3c60b30042a72d722f21b0c6133faaa78a43 (patch)
tree6d584c20735fd8f6a096b319d8ed5aa968dd7a5a /manifests/init.pp
parent47ab1cae85519b47fd6bf98e796add62e87dcec8 (diff)
downloadpuppet-nodo-e55f3c60b30042a72d722f21b0c6133faaa78a43.tar.gz
puppet-nodo-e55f3c60b30042a72d722f21b0c6133faaa78a43.tar.bz2
Get role and location variables via hiera
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index df1c239..d8155b6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -9,6 +9,11 @@ Exec { path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" }
filebucket { server: server => hiera('puppet::daemon::server', "puppet.${::domain}") }
File { backup => server }
+# Set role and location variables: this is a trick so we can use role and location
+# in Hiera's hierarchical config.
+$role = hiera('nodo::role', 'default')
+$location = hiera('nodo::role', 'default')
+
# Import required modules
import "common"
import "sshd"