Tamas Papp
10/08/2022, 10:40 AMTamas Papp
10/08/2022, 10:43 AMnode node1.tld {
access { 'group1': sudo => true }
access { 'group2': sudo => false }
}Tamas Papp
10/08/2022, 10:43 AMTamas Papp
10/08/2022, 10:44 AMnode node1.tld {
access { 'group1': sudo => true }
access { 'group2': sudo => false }
}Tamas Papp
10/08/2022, 10:46 AMnode1 I want to allow group1 and group2 to be added to sshd_config (or /etc/sshd_config.d/allowgroups.conf like this:
AllowGroups group1 group2
I also want to generate sudoers entries.Tamas Papp
10/08/2022, 10:46 AMTamas Papp
10/08/2022, 10:47 AMTamas Papp
10/08/2022, 10:48 AMaccess { 'group1': sudo => true } is removed from the node definition, that also renders sshd_config and get group1 removed.Tamas Papp
10/08/2022, 10:49 AMkenyon
10/08/2022, 6:04 PMDr Bunsen Honeydew
10/08/2022, 6:04 PMsaz-ssh module at https://forge.puppet.com/saz/ssh?src=slack&channel=puppetTamas Papp
10/08/2022, 6:42 PMTamas Papp
10/08/2022, 6:56 PMssh::server::config::setting can be defined only a single time for AllowGroupsSlackbot
10/09/2022, 3:02 PMdavidphay
10/10/2022, 8:54 AMSlackbot
10/10/2022, 10:46 AMKonstantin
10/10/2022, 10:54 AM<% classes.each do |klasss| -%>
#comment "<%= klasss %>"
<% end -%>
On output i get short list of modules/classes that are on server:
#comment "settings"
#comment "server-1"
#comment "common_servers"
#comment "puppet_agent_7"
#comment "iptables"
#comment "users::user-1"
#comment "users::user-2"
If on node i look at /opt/puppetlabs/puppet/cache/state/classes.txt
I see full ist of classes/modules included in node.
How can i get full list via erb template, cause command "classes" seems to be give not full list. At least it does not contain modules that in common_servers, which contain several included modules?Massimiliano (Max)
10/10/2022, 3:58 PMnandha kumar
10/10/2022, 4:19 PMSlackbot
10/10/2022, 4:19 PMMassimiliano (Max)
10/10/2022, 4:50 PMSlackbot
10/10/2022, 7:37 PMWilliam Myers
10/10/2022, 7:38 PMWilliam Myers
10/10/2022, 7:38 PMrismoney
10/10/2022, 7:38 PMyaml
websvc::classes:
- websvc::whatever
```
if i wanted to declare a class with parameters, based on hiera lookup could i use a resource like declaration?
These scenarios i am doing a lookup of a the class like above, but then performing other 'lookups' of separate variables in hieradata. wondering if i could just use the class automatic vars.rismoney
10/10/2022, 7:39 PMSlackbot
10/10/2022, 7:41 PMrismoney
10/10/2022, 7:45 PMyaml
websvc::classes:
- websvc::whatever
```
if i wanted to declare a class with parameters, based on hiera lookup could i use a resource like declaration?
These scenarios i am doing a lookup of a the class like above, but then performing other 'lookups' of separate variables in hieradata. wondering if i could just use the class automatic vars.Slackbot
10/10/2022, 7:49 PMSlackbot
10/10/2022, 9:10 PM