We do this by using pre_classes and classes key in hiera.

https://github.com/example42/puppet-psick/blob/4a76bddeeffbabde2d628ba3e124be24841c785c/manifests/init.pp#L138
https://github.com/example42/puppet-psick/blob/master/manifests/pre.pp


> On 22. Jan 2020, at 04:49, Keyzer Suze <[email protected]> wrote:
> 
> Hi
> 
> I am usig a external node classifier
> from here I am associating nodes to baseline hiera file
> 
> 
> 
>   - name: "Baseline"
>     path: "baseline/%{::pp_baseline}.yaml"  # File path, relative to datadir.
> 
> 
> I do something like this
> # vim:tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab
> ---
> message: "based upon INF-3619"
> 
> classes:
>   - profile::ybyum::r20200122
>   - profile::ybjava::r20191125
>   - profile::yblvm::vg_os::r20191112
>   - profile::ssh_mgmt_key::r20191112
>   - profile::ybfirewall
>   - profile::ybsshd
>   - profile::ybmotd
>   - profile::ybenv
>   - profile::ybpackages::standard
>   - profile::ybntp
>   - profile::ybrepo::epel
>   - profile::ybusers
> 
> 
> 
> Now my problems is package resource statements come first I really need the 
> ybyum class to run first.
> 
> How can I do that ?
> 
> 
> 
> -- 
> 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/569f538a-c050-437c-baf9-21aa4e5b30bc%40googlegroups.com.

-- 
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/627BF06E-7C80-4422-9360-361B13522498%40gmail.com.

Reply via email to