can't call hiera() from templates?
[mirror/dsa-puppet.git] / modules / ssh / manifests / init.pp
index 0824f0f..455d322 100644 (file)
@@ -1,5 +1,8 @@
 class ssh {
 
+       nodes = hiera('nodes', nil, {'cluster' => hiera('cluster')})
+       $rootkeys = nodes.collect{|x| hiera('rootkey', nil, {'hostname' => x})}
+
        package { [ 'openssh-client', 'openssh-server']:
                ensure => installed
        }