While some formulas are designed to be applied to ALL minions, some are only meant to be deployed to a certain subset of minions, for example an apache-formula shouldn't ever need to run on a server that isn't a web server, or on a server that is using nginx.
So we need to add an 'enable' parameter/pillar.
TEMPLATE:
lookup:
enabled: False
On the other hand to make a formula default to not apply unless needed by a role we can set:
parameters/default.yaml
TEMPLATE:
lookup:
enabled: True
This allows us to more safely run ad-hoc commands from the CLI and helps protect us from doing something stupid like:
salt -C 'somenonapacheminion' state.apply apache