On Wednesday, July 8, 2015 at 8:39:10 AM UTC-5, Albert Shih wrote: > > Hi, > > Very basic question about hiera file. > > I've > > hieradata/my_host.yaml > > I like at the end of my_host.yaml make something like > > include my_host_add.yaml > > is it possible ? >
No, at least not with HIera's built-in YAML back-end. YAML has no facility such as you describe, so to get it you would need to engage a YAML parser that supported such a thing as an extension. > The reason is some data is automatically extract from a database, those > data is specific to that host. And because this file is pretty big I don't > known if it's a good idea to use hierachy to include in every host > (knowing > I've no way to use those data outside to my_host) > > The hierarchy is the main tool available for combining data from multiple sources. If you don't want to use it for your purpose then you always have the alternative of writing a custom Hiera back-end, or, for some purposes, an altogether separate data lookup function. With that said, I'm not really following the nature of your problem. How would the availability of an 'include' statement mitigate the data-size issue you are concerned about? John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a07998cf-efd5-4d78-a705-cb225d8f585c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.