voxpupuli / puppet-augeasproviders_pam

Augeas-based PAM type and provider for Puppet
Other
5 stars 21 forks source link

Can you tell me if variables are supported? #39

Closed Kaerius closed 1 year ago

Kaerius commented 1 year ago

Can you tell me if variables are supported? $retry, $time

pam { "/etc/pam.d/common-auth": ensure => present, service => common-auth', type => 'auth', module => 'pam_tally.so', arguments => ['retry=$retry', 'minlen=$time'], }

tuxmea commented 1 year ago

Hi,

Almost right: Variables need double quotes and curly brackets:

pam { "/etc/pam.d/common-auth": ensure => present, service => common-auth', type => 'auth', module => 'pam_tally.so', arguments => ["retry=${retry}", "minlen=${time}”], # <----- }

Hth, Martin

On 19. Dec 2022, at 09:58, Kaerius @.***> wrote:

Can you tell me if variables are supported? $retry, $time

pam { "/etc/pam.d/common-auth": ensure => present, service => common-auth', type => 'auth', module => 'pam_tally.so', arguments => ['retry=$retry', 'minlen=$time'], }

— Reply to this email directly, view it on GitHub https://github.com/voxpupuli/puppet-augeasproviders_pam/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF2KTW3XP5RXUFZAPONF7LWOAPSFANCNFSM6AAAAAATDDPHWQ. You are receiving this because you are subscribed to this thread.

Kaerius commented 1 year ago

Thank you very much!