From e55f3c60b30042a72d722f21b0c6133faaa78a43 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 13 Apr 2013 16:21:15 -0300 Subject: Get role and location variables via hiera --- manifests/init.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests/init.pp') 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" -- cgit v1.2.3