Make management of the main sudoers config optional

It should be possible to not overwrite the main sudoers configuration
file and only provide files to be included. This introduces a new Pillar
variable to achieve that. If it's not set we default to the old
behaviour of managing that file.
This commit is contained in:
Sebastian Meyer
2018-08-22 12:30:32 +02:00
parent 76a3db1b3b
commit 73d2d70dbb
3 changed files with 15 additions and 0 deletions
+2
View File
@@ -1,4 +1,6 @@
sudoers:
# By default the main sudoers file is managed by this formula (False to skip)
manage_main_config: True
users:
johndoe:
- 'ALL=(ALL) ALL'