Closed jachinte closed 8 years ago
Another possibilities, more concise and understandable: (3)
on host if boolean_expression {
rule if boolean_expression: dependencies;
// commands
}
(4)
on host? boolean_expression {
rule? boolean_expression: dependencies;
// commands
}
Final decision: option (4)
Parameters allow to configure different executions for different values. However, this has implications on the hosts and commands that are used. Adding conditional expressions to the language would avoid duplicating subsystems.
Example: (1)
or (2)
When rule depends on a conditional rule, then the dependency is conditional.