Assume a directory like this:
- etc/nginx/sites-available/
- hostA
- hostB
- hostC
Where hostA and hostB are created by salt. hostC was created earlier by salt as well, but since than it has been removed from pillar and is no longer needed. I want the directory to contain only files that represent current state. There is option to have the directory with clean: True
, but that will result in seeing a full diff of the directory every time I highstate - in our case it's 30 different files created on every highstate. That's making it very hard to check the changes that took place. Is there any way to work around this?
Update: current output (pseudo yaml)
- directory
- deleted:
- file: hostA
- file: hostB
- file: hostC
- file
- new file: hostA
- file
- new file: hostB
I would expect
- directory:
- deleted:
- file: hostC