Consider the following CLI invocation:
# salt-call -l trace state.single file.managed /tmp/test require="{'pkg':'sudo'}" 2>&1 | grep sudo
root 11472 6530 0 Jan30 pts/2 00:00:00 sudo -i
root 29259 11473 0 10:51 pts/2 00:00:00 python /home/madduck/code/salt/scripts/salt-call -c /home/madduck/code/salt/local/etc/salt --no-color -l trace state.single file.managed /tmp/test require={'pkg':'sudo'}
root 29260 11473 0 10:51 pts/2 00:00:00 grep sudo
I think that Salt should not execute this state because its requirements
cannot be fulfilled. However, it seems that state.single does not care about
requirements.
Consider the following CLI invocation:
I think that Salt should not execute this state because its requirements
cannot be fulfilled. However, it seems that
state.singledoes not care aboutrequirements.