lordmauve / chopsticks

Chopsticks is an orchestration library: it lets you execute Python code on remote hosts over SSH.
https://chopsticks.readthedocs.io/
Apache License 2.0
158 stars 16 forks source link

Filter operation on Groups #27

Closed lordmauve closed 7 years ago

lordmauve commented 7 years ago

As discussed in #26, we should be able to treat Groups like sets - in order to be able to union them etc.

We should also add an operation group.filter(callable), which executes the callable on all hosts in the group and returns a new group that contains only those hosts where the callable returns True.

This would enable building groups based on dynamic information sourced from the hosts themselves.

lordmauve commented 7 years ago

This is implemented in 27350999bd4479a33de9500215c5a350973c3562.