Re: [Puppet Users] Re: Role vs hiera

2016-10-27 Thread Ugo Bellavance
On Thursday, October 27, 2016 at 11:45:06 AM UTC-4, Thomas Müller wrote: > > > > Am 27.10.2016 um 15:43 schrieb Ugo Bellavance: > > That looks great, thanks! > > > > However, I just realized that my server roles are somewhat related to > > the server names. For example, I could call my webse

Re: [Puppet Users] Re: Role vs hiera

2016-10-27 Thread Thomas Mueller
Am 27.10.2016 um 15:43 schrieb Ugo Bellavance: > That looks great, thanks! > > However, I just realized that my server roles are somewhat related to > the server names. For example, I could call my webservers something > like www1, www2, www3. If all those 3 servers have the same config, > is t

Re: [Puppet Users] Re: Role vs hiera

2016-10-27 Thread Rob Nelson
I do exactly that with a custom fact called `puppet_role`, which is listed in my hierarchy as `- "puppet_role/%{puppet_role}'​"`. See https://github.com/puppetinabox/controlrepo/blob/production/dist/profile/lib/facter/puppet_role.rb, feel free to copy that if it helps. -- You received this messag

[Puppet Users] Re: Role vs hiera

2016-10-27 Thread Ugo Bellavance
That looks great, thanks! However, I just realized that my server roles are somewhat related to the server names. For example, I could call my webservers something like www1, www2, www3. If all those 3 servers have the same config, is there a way to create a file that would apply to all of th

[Puppet Users] Re: Role vs hiera

2016-10-27 Thread Thomas Müller
Am Dienstag, 18. Oktober 2016 20:34:25 UTC+2 schrieb Ugo Bellavance: > > Hi, > > I've seen tutorials where they add the role as a fact in an client and > then can use the role for hiera data. Is there a better way to do so (ie > without having to configure anything on the client)? > you could