Fix generate_doc orchestrate
diff --git a/sphinx/orch/generate_doc.sls b/sphinx/orch/generate_doc.sls
index 7bad6f1..0dd4f79 100644
--- a/sphinx/orch/generate_doc.sls
+++ b/sphinx/orch/generate_doc.sls
@@ -8,19 +8,23 @@
salt.state:
- tgt: '*'
- sls: salt.minion.grains
+ - require:
+ - salt: linux_system_doc_state
-mine_flush:
- salt.function:
- - name: mine.flush
- - tgt: '*'
-
+{# Mine flush/update works only when executed via salt-call #}
mine_update:
salt.function:
- - name: mine.update
+ - name: cmd.run
- tgt: '*'
+ - arg:
+ - salt-call mine.flush; salt-call mine.update
+ - require:
+ - salt: salt_minion_grains
sphinx_state:
salt.state:
- tgt: 'I@sphinx:server'
- tgt_type: compound
- sls: sphinx
+ - require:
+ - salt: mine_update