-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Labels
Description
Your setup
Formula commit hash / release tag
v0.23.4
Versions reports (master & minion)
Salt Version:
Salt: 3003
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.7.3
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.10.1
libgit2: 0.28.3
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.6.1
pygit2: 1.0.3
Python: 3.8.5 (default, Jan 27 2021, 15:41:15)
python-gnupg: 0.4.5
PyYAML: 5.3.1
PyZMQ: 18.1.1
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.2
System Versions:
dist: ubuntu 20.04 focal
locale: utf-8
machine: x86_64
release: 5.4.0-73-generic
system: Linux
version: Ubuntu 20.04 focal
Pillar / config used
sudoers:
purge_includedir: true
groups:
sudo:
- 'ALL=(ALL) NOPASSWD: ALL'
Bug details
Describe the bug
The purge_includedir option doesn't do anything when set to true
Steps to reproduce the bug
- Set option
- Add a random file to /etc/sudoers.d/
- Execute salt
- Watch how the file is not deleted
Expected behaviour
Extra files to disappear
Attempts to fix the bug
I made sure the correct value is exported in Pillar:
sudoers:
----------
groups:
----------
sudo:
- ALL=(ALL) NOPASSWD: ALL
purge_includedir:
True
Additional context
I think this might be related to saltstack/salt#26605 ?