voxpupuli / puppet-augeasproviders_grub

Augeas-based grub type and providers
Apache License 2.0
9 stars 33 forks source link

grub.cfg not updated if superuser line is deleted but not the password line. #35

Open apuks opened 6 years ago

apuks commented 6 years ago

ver 3.0.1 grub_user{'adminuser': password => "${passwd}", superuser => true, }

Admin deleted "set superusers" line from /boot/grub2/grub.cfg and /etc/grub.d/02_puppet_managed_users but not the password_pdkdf2 lines

Puppet never updates either file after this.

Deleting the password_pdkdf2 fixes the issue

a-dekker commented 6 years ago

I also noticed that the content of 02_puppet_managed_users is not (puppet) managed as expected.

ssm commented 4 years ago

If the grub_user is created only with the "password" parameter, and "superuser" parameter is added later, the user is not added to the list of superusers.