Hi, i have some trouble with hiera and %{calling_module}.
i have: class tomcat::instance{ $instances = hiera('tomcat_instances') tomcat::installer{$instances:} } define tomcat::installer { require 'tomcat' $instance_opts = hiera($name) $tomcat_user = $instance_opts[user] $tomcat_group = $instance_opts[group] $basedir = $instance_opts[basedir] $logdir = $instance_opts[logdir] $tomcat_name = $instance_opts[name] $tomcat_version='6' ... } i specify the tomcat names in a hiera file and run the define wit the names as array (so they get executed for each name) '/var/lib/environments/test/hieradata'/tomcat/crowd.yaml --- tomcat_instances: - crowd1 - crowd2 crowd1: name: 'crowd1' basedir: '/srv' logdir: '/var/log' user: 'crowd' group: 'crowd' crowd2: name: 'crowd2' basedir: '/srv' logdir: '/var/log' user: 'crowd' group: 'crowd' my hiera.yaml --- :hierarchy: - %{calling_module}/%{fqdn} - %{hostbasename} - %{domain} - common :backends: - yaml :yaml: :datadir: '/var/lib/environments/%{environment}/hieradata' if i wrote the crowd.yaml content in the common.yaml all works, if its in the module subdirectory, puppet can not find the data from the hiera lookup in the tomcat::installer, but the call from the tomcat::instance class works, i get the right tomcat names in the error. any idea? rgds Florian -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ZjdL5rHQxBYJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.