Open iggy opened 9 years ago
Fair point - shouldn't we just get rid of that statement altogether?
I was thinking something like the following. I don't know how much of the shell is available for onlyif calls though (or I would have just done a PR ;)
onlyif: [ ! -d {{ whisperdir }} ]
That would work but looking at the code again i'd think we'll just have to get rid of the recurse attribute - then it should only create the whisper dir if needed but nothing more. Will need to get a test setup together for this - if you need this expedited you can send me a PR.
https://github.com/saltstack-formulas/graphite-formula/blob/master/graphite/init.sls#L86
If you have data already in that directory, the recurse can take forever.