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

Set operations in Groups #26

Closed lordmauve closed 7 years ago

lordmauve commented 7 years ago

Groups are effectively sets of Tunnels. Now that Tunnels connect lazily, one could consider paradigms like

webservers = Group(...)
load_balancers = Group(...)
databases = Group(...)

with webservers + load_balancers as group:
    group.call(install_http_monitoring)
meshy commented 7 years ago

Nice idea. Might these also make sense?:

new_group = Group(...) + Tunnel(...)
new_group2 = Tunnel(...) + Tunnel(...)
lordmauve commented 7 years ago

Sounds good.