I have solved it as below with a wrapper to the zabbix module:
class common::zabbix {
contain zabbix::agent
Class['common::repos'] -> Class['common::zabbix']
}
and then in selected yaml environments
## YAML
---
classes:
- common
- ntp
- common::zabbix
El viernes, 17 de abril de 2015, 16:57:25 (UTC+2), Raul Macian escribió:
>
> Hi There,
>
> After a couple of years working with puppet I'm starting to use Hiera as
> ENC with the hiera_include('classes').
>
> Now I'm having problems with the resource ordering. I created a module to
> set up my repos and then use some others modules. My problem is that my
> 'common' module must run before the other modules and I don't know how to
> do it in hiera.
>
> My yaml is like
>
> ## YAML
> ---
> classes:
> - common
> - ntp
> - zabbix::agent
>
>
>
> But this drives me to
>
> Info: Applying configuration version '1429274932'
> Notice: /Stage[main]/Zabbix::Agent/Package[zabbix-agent]/ensure:
> current_value absent, should be 2.4.3-1.el6 (noop)
> Notice: /Stage[main]/common::Repos/Yumrepo[zabbix]/ensure: current_value
> absent, should be present (noop)
>
> How do I force to the common class to have procedence over the zabbix
> module? Before using hiera as ENC I would have a -> between the classes
> and an anchor if needed in my manifest, but now I don't have any manifest
> for my nodes. Where can I put it on ?
>
>
>
>
--
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/80f6e605-6805-4295-9fe9-40f19e957898%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.