Hey List, during the last weeks I finally managed to spend some quality time :) with Puppet and I deepened my knowledge a bit: learned some ruby, wrote my first custom ruby facts, used hiera in my latest module... it's been fun.
There is one concept with Hiera though which is still unclear for me. Let's say all of our servers have only port 22 open. But I assign my module to a node which installs and configures Apache, so it should add port 80 and 443 to the open ports list. Or I assign my other module to a node which uses SSO and has to enable the mod_auth_kerb Apache module. On my ELK nodes I'd like to use some more Apache modules as well. Or a Docker node needs to add some rules to the /etc/sudoers, another application some more rules... I could name a few more examples, but the point is: I can't always define something static in a hiera value, like open_ports: / apache_modules_enabled: / sudo_commands: etc. but need to dynamically manage these arrays when a module is assigned to a node. How should be this achieved? A _very_ primitive analogy is like $PATH="$PATH:/usr/local/my_app" where I don't have to take care of the actual content of $PATH, but can simply extend it. Something similar would be great in Hiera (or elsewhere) instead of using defines for every resource I have. Thanks Rp -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANwwCtz0nz6%2BzZMX4ksfrfy%3D8sMjmsSi6vrSpZqS49fVUVO-dA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.