Scitsifréine, or short scitsi
is a small tool for using tmux for connecting to multiple remote servers via ssh.
In most cases, the hosts you want to connect to are defined in a central registry or ansible inventory file.
To use those sources for a direct host lookup, you have to define the SCITSIFREINE_ANSIBLE_INVENTORIES
environment variable with the inventory files you want to use.
$ export SCITSIFREINE_ANSIBLE_INVENTORIES="/path/to/an/inventory"
If you want to use different files for a host lookup (e.g. if you split the inventory into a development and a production environment) you can do this as well:
$ export SCITSIFREINE_ANSIBLE_INVENTORIES="development=/path/to/an/inventory_dev,production=development=/path/to/an/inventory_live"
After this environment variable is set, you can uae the following syntax to connect to a corresponding host group:
$ scitsi --ansible-host-lookup <environment> <host_group>