aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
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"