diff --git a/hiera.yaml b/hiera.yaml index 89b5134..d53a22d 100644 --- a/hiera.yaml +++ b/hiera.yaml @@ -1,6 +1,6 @@ :hierarchy: - "ortiche/%{::hostname}" - - common + - ortiche/common :backends: - yaml :yaml: diff --git a/manifests/site.pp b/manifests/site.pp index 8fba65f..2576e8c 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -1,5 +1,5 @@ - -notify{"The value is: ${::ortiche-admin}": } +$admin=hiera('ortiche-admin') +notify{"Variable is ${::admin}": } Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" , "/usr/local/bin/", "/usr/local/sbin/" ]