hi,

I have a strange problem that I cant see a solution too -

I have 2 modules i want to load before main so that  network and yum are 
setup before the other modules load.

i have the following in manifests/site.pp  to do this
stage { 'pre' :
        before => Stage['main'],
}

node default {
        class {
                'yum': stage => 'pre';
                'network': stage => 'pre';
        }
}

my problem is that I have parameters in hiera data,  if I have them in the 
host specific file all is fine,  if I have any in the environment specific 
file they fail with

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Detected in [environment] at   /etc/puppet/modules/yum/manifests/init.pp:14

If i move the module out of pre and assign it to a node it works ok.

my hiera.yaml is
---
:backends:
  - yaml
:hierarchy:
  - "%{environment}/hosts/%{fqdn}"
  - "%{environment}/groups/%{group}"
  - "%{environment}/%{environment}"
  - global

:yaml:
  :datadir: /etc/puppet/hieradata


has anyone faced anything similar or have any suggestions

thanks
simon

-- 
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/113d5790-00fa-4b9e-9720-280e3366709d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to