Where can I find this updated examples? On Thursday, September 19, 2013 1:03:17 PM UTC-7, Rob Reynolds wrote: > > Henrik posted some updates/fixes to his examples. Can you check that first? > > > On Wed, Sep 18, 2013 at 10:57 AM, Igor Berger <[email protected]<javascript:> > > wrote: > >> Any ideas? >> >> >> On Monday, September 16, 2013 11:30:42 AM UTC-4, Igor Berger wrote: >>> >>> Hello, >>> >>> I'm running Puppet agent stand-alone on Windows. >>> >>> I got data-in-modules working. However, no matter what I put into the >>> module hiera.yaml, >>> I can only override the defaults from common.yaml by osfamily (and not, >>> e.g., by environment). >>> >>> In the setup below the following command outputs: >>> >>> >puppet apply --binder -e "notice lookup ('my_key')" --environment=local >>> Notice: Scope(Class[main]): windows-value >>> Notice: Compiled catalog for myhostname in environment local in 1.40 >>> seconds >>> >>> And if I delete the osfamily directory, the same command outputs >>> "common-value". >>> >>> So, even though osfamily is not part of the hierarchy, it's used to >>> override the common value. >>> Conversely, environment is part of the hierarchy, but it's not used. >>> >>> Did I miss anything? >>> >>> Thanks, >>> Igor. >>> >>> >>> Module structure: >>> >>> my_module/ >>> hiera.yaml >>> data/ >>> common.yaml >>> environment/ >>> local.yaml >>> osfamily/ >>> windows.yaml >>> >>> >>> hiera.yaml contains: >>> >>> --- >>> version: 2 >>> hierarchy: >>> [ >>> ['environment', '${environment}', 'data/environment/${environment}'], >>> ['common', 'true', 'data/common'] >>> ] >>> >>> >>> data/common.yaml contains: >>> >>> --- >>> my_key: 'common-value' >>> >>> >>> data/osfamily/windows.yaml contains: >>> >>> --- >>> my_key: 'windows-value' >>> >>> >>> data/environment/local.yaml contains: >>> >>> --- >>> my_key: 'local-value' >>> >>> -- >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Rob Reynolds > Developer, Puppet Labs > > Join us at PuppetConf 2014, September 23-24 in San Francisco >
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/96546f73-d70b-4057-99cd-307ffc902ad2%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
