Closed traylenator closed 1 year ago
Looks good! Should it be added in a new major release in your opinion? Since these changes break functionality as it is now for some cases?
Thanks for the reply.
What's the change in behaviour ?
Maybe i am wrong, but by changing from suffix to prefix, i think we break working configurations. Or am i misreading this? Do we still retain the suffix parameter? If so, the previous behaviour is still retained and there should be no issue. Edit: Had another look at it, should be completely fine.
Yeah just the documentation advice changes and as you it's a new paramter , the old useless for my usecase suffix is still there which is fine.
@traylenator Please rebase and squash commits. Thanks!
@traylenator Any news on this?
Will sort out in couple of weeks time.
Now to understand what I was trying to do with these tests .....
@saz there I hope. Rebased , the acceptance tests were essentially rewritten as turned out to be easier.
Also it seems that visudo is now slightly stricter so needed some chmod 0400
for the non-puppet created sudo entries.
@saz ?
A previous attempt in
https://github.com/saz/puppet-sudo/pull/248
to allow only files created with the suffix
_puppet
to be purged is faulty. In particular withDoes not work as files names shorter than the length of string
_puppet
are not ignored and so are deleted.Switching to prefix
Gives the desired result.