config.yaml supplies influxdb_url and influxdb_name. Run the playbook with:
python run.py <host1> <host2> ... \
[--ssh-port 22] \
[--ssh-user root] \
[--ssh-key PATH] \
[--ssh-password PASSWORD] \
[--server-type guest|baremetal] \
[--config config.yaml]
- Hosts are required. Each one is both the inventory name and the SSH address.
--ssh-portdefaults to22.--ssh-userdefaults toroot. A non-root account must have passwordless sudo.--ssh-keyis the private key for key-based login. Omit it to use ssh-agent or the default keys.--ssh-passwordis for password login. Do not combine it with--ssh-key.--server-typedefaults toguest. Usebaremetalto install the baremetal collectors.--configdefaults toconfig.yamlnext torun.py.
The same playbook can still be run by editing inventory/hosts.yaml and executing ansible-playbook -i inventory/hosts.yaml -e @config.yaml playbook.yaml.