saz / puppet-sudo

Manage sudo with Puppet on Debian-, RedHat- and SUSE-based linux distributions and some BSDs
Other
107 stars 215 forks source link

I can't get sudo:defaults to work with hiera #308

Open opentokix opened 1 month ago

opentokix commented 1 month ago

I have this block in hiera

sudo::defaults:
  use_pty:
  logfile: "/var/log/sudo.log"
  timestamp_timeout: 10

I have also tried this mentioned in the docs.

sudo::defaults:
  use_pty:
  logfile: 
    value: "/var/log/sudo.log"
  timestamp_timeout: 
    value: 10

But those three default-lines does not get added to /etc/sudoers

Puppet agent 8.6.0 Puppetserver: 8.6.0 OS: Ubuntu 22.04