Yeah, agreed, my default node looks like:
node default {
  $role=hiera('role')
  include $role
}

and the  lowest priority/default-est part of my hiera hierarchy has role:
role::base. other actually classified things get role set at various parts
of the hierarchy as needed.


On Tue, Oct 18, 2016 at 2:04 PM Peter Kristolaitis <[email protected]>
wrote:

> There is no magic involved in roles and profiles -- they're just classes
> that get assigned to nodes based on the node's definition.
>
> Thus, if you want a default role assigned to the default node
> definition... then assign that default role to the default node definition.
>
>
>
>
> On 2016-10-18 01:58 PM, Ugo Bellavance wrote:
>
> Hi,
>
> Is there an equivalent of the default node definition when using profiles
> and roles?
>
> Thanks,
> --
> 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/7a443246-ab0f-4872-943f-66780adff83c%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/7a443246-ab0f-4872-943f-66780adff83c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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/e3afe4b3-0cdf-3478-cb07-a580923f3ba9%40alter3d.ca
> <https://groups.google.com/d/msgid/puppet-users/e3afe4b3-0cdf-3478-cb07-a580923f3ba9%40alter3d.ca?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnEbkbFsi%3DLFSn%2B%2Bwbg0tEEJePMRSnNRvVMs787jUNqj65uZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to