salt/tests/integration/files/file/base/requisites/mixed_complex1.sls

54 lines
998 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Complex require/require_in/prereq/preqreq_in graph
#
#
# D (1) <--------r-----+
# |
# C (2) <--+ <-----p-------+
# | | |
# B (3) -p-+ <-+ <-+ --+ |
#   | | |
# E (4) ---r---|---+ <-+ |
# | | |
# A (5) --r----+ ---r--+ --+
#
A:
cmd.run:
- name: echo A fifth
# is running in test mode before C
# C gets executed first if this states modify something
- prereq_in:
- cmd: C
B:
cmd.run:
- name: echo B third
- require_in:
- cmd: A
# infinite recursion.....
C:
cmd.run:
- name: echo C second
# will test B and be applied only if B changes,
# and then will run before B
- prereq:
- cmd: B
D:
cmd.run:
- name: echo D first
# issue #8773
# this will generate a warning but will still be done
- require_in:
cmd.foo: B
E:
cmd.run:
- name: echo E fourth
- require:
- cmd: B
- require_in:
- cmd: A