copy module, setup with foreman [closed]
Hi all! Disclaimer, VERY NEW USER to Puppet.
Was hoping someone might be able to point me to some documentation (or tell me how) with regards to adding a custom module. Here's the thing, I'm working with an existing Puppet environment, which is using Foreman on the front end. I need to add three users to the sudoers file on three specific servers. What I THINK I can do is: 1) copy /etc/puppet/modules/sudo to /etc/puppet/modules/sudoWinTeam 2) edit /etc/puppet/modules/sudoWinTeam/files/sudoers.lx and add the three Windows admins that need sudo access on three of my RHEL servers. So now I've got this module sitting there, how do I get Puppet to see it as a new module? Is it with: puppet module install --modulepath /etc/puppet/modules/sudoWinTeam ? Given that's all there is, and that the module is "installed" I assume I just go to Foreman, find the host(s), edit, go to classes, remove the "sudo" module/class, and add the sudoWinTeam? Am I on the right path? Mostly my two big questions are how to get Puppet to recognize the new module (sudoWinTeam), and then how to associate it with the three servers in Foreman. Once all that is good, I think I just need to start the puppet service on the three servers, and run puppet agent -t Is that right? Thanks in advance for any help! Jason