我们有以下盐状态, watch 是否暗示需要?或者规则最好是这样写的?
"celery-worker:":
supervisord.running:
- update: True
- watch:
- file: /etc/supervisor/conf.d/celery-worker.conf
- pkg: ingestion
- require:
- file: /etc/supervisor/conf.d/celery-worker.conf
- pkg: ingestion
最佳答案
您不需要指定 require
再次用于文件和 pkg。 watch
也意味着需要。
celery-worker:
supervisord.running:
- update: True
- watch:
- file: /etc/supervisor/conf.d/celery-worker.conf
- pkg: ingestion
关于Salt-Stack 确实监视意味着需要,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23635378/