Hi,

> > I am trying to import some manifests manually (outside the modules tree)
> > and it does not seem to work fine.
> Would you care to talk about why you want to do this?  I know exactly
> one good use case for the 'import' statement, and it's not your case.
> There is probably a better way to achieve your goal.

The idea is to separate the data from Hiera away from the modules directory. I 
am using the hiera-puppet backend, without the yaml backend. So, I have found 
that the :hierarchy: allows me to have the data inside a module itself. 

According to the example inside hiera-puppet module, if you define:

:backends: - puppet
:hierarchy: - %{location}
            - %{environment}
            - common
:puppet:
        :datasource: data

Then the hiera data is searched within:

 * class data::dc2
 * class data::production
 * class data::common
 * class ntp::config::data
 * class ntp::data

Which is exactly what I wanted to do... but I did not want to have the "data" 
module with the rest of the modules (it's hiera data anyway) so I created a 
directory manifests/data to put those files. Maybe I should have called hiera, 
but data is just fine. It is not imported automatically, so those files need 
to be imported by hand. And if I use globbing, I may have surprises later 
because of that known problem with globbing (that require a touch on the 
site.pp).

If there is a more elegant way to proceed, I'm happy to hear!

BR/Pablo

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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.

Reply via email to