質問

We have the following salt state, does the watch imply a require? Or is the rule best written this way?

"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
役に立ちましたか?

解決

You do not need to specify the require for the file and the pkg again. watch implies require too.

celery-worker:
  supervisord.running:
    - update: True
    - watch:
      - file: /etc/supervisor/conf.d/celery-worker.conf
      - pkg: ingestion
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top