ghoneycutt / puppet-module-pam

Puppet module to manage PAM
Other
18 stars 79 forks source link

Basic usage #146

Closed csdougliss closed 7 years ago

csdougliss commented 7 years ago

Hi,

I am trying to add the following:

add session required pam_limits.so in:

/etc/pam.d/common-session
/etc/pam.d/common-session-noninteractive if the file exists
/etc/pam.d/sshd if you access the machine via SSH

How can I do this via the plugin?

ghoneycutt commented 7 years ago

Look for the params that end in _lines. Those each take an array of lines for the contents of the file that they manage.