Scott Macmillan
03/24/2023, 3:29 PM.pp file (in large part because it’s a lot of hiera across multiple machines), but the only way I know to include it there is to declare the class, and I get an error for declaring that class twice.
I have ways I can de-duplicate the hiera, but I was wondering if there’s a way to include all these settings in the child role .pp. Thanks for any ideas you might have.rnelson0
03/24/2023, 4:22 PMinclude classname twice is the safest way to have a class in two places.rnelson0
03/24/2023, 4:23 PMnatemccurdy
03/24/2023, 4:23 PMrnelson0
03/24/2023, 4:25 PMmanaged_service parameter that defaults to true and put an if ($managed_service) { } block around the normal include. Set it to false for this one client and then add profile:service:specialclient to that client's role and hardcode stuff there in an explicit resourcename { 'title': ... } block. I still would want to iron out hiera and make things simpler but sometimes this IS the only way, at least in the short term, so it's a valid trick to keep in your back pocket.Ken
03/24/2023, 5:25 PMScott Macmillan
03/24/2023, 6:03 PMScott Macmillan
03/24/2023, 6:04 PMcanihavethisone
03/25/2023, 12:50 AMcanihavethisone
03/25/2023, 12:51 AMSlackbot
03/25/2023, 1:27 AMNigel
03/25/2023, 2:49 AMclass { 'firewalld' : }
Does this mean I need to write my own class or do I include this class statement inside my class where i am trying to use it. e.g. a base class.natemccurdy
03/25/2023, 4:23 AMfirewalld class where needed.
There are two'ish ways to declare (i.e. use) classes in Puppet.
The first is with the include function:
include firewalld
The second is using the resource-like syntax:
class { 'firewalld': }
Both of these are essentially the same. They declare the class with all defaults for any parameters it might have. Best practice though is to just use include when you don't need to specify a class parameter.Herve Meftah
03/25/2023, 6:16 AMSlackbot
03/25/2023, 6:20 AMNigel
03/25/2023, 7:11 AMSlackbot
03/25/2023, 4:03 PMYury Bushmelev
03/25/2023, 4:27 PMDamian
03/27/2023, 11:22 AMPuppet master 4.10.1 and puppet agent 1.10.1 rpm packages to install in CentOS7. Could you give me a link to download them? Thanks!ripienaar
03/27/2023, 1:03 PMripienaar
03/27/2023, 1:03 PMYorokobi
03/27/2023, 1:04 PMSlackbot
03/27/2023, 5:39 PMBrian Schonecker
03/27/2023, 5:40 PMBrian Schonecker
03/27/2023, 5:41 PMBrian Schonecker
03/27/2023, 7:28 PMnatemccurdy
03/27/2023, 7:34 PM%{lookup('foo')} can be interpolated into a larger string while %{alias('foo')} can not be interpolated into a larger string.Brian Schonecker
03/27/2023, 7:35 PMSlackbot
03/27/2023, 8:11 PMCorporate Gadfly
03/27/2023, 8:53 PM/etc/nsswitch.conf with augeas and sssd.conf with inifile::create_ini_settings. No knock against existing modules and YMMV.