Till Klocke fb6defc9e3 Added new external role for the gluon-collector | 9 年之前 | |
---|---|---|
.. | ||
defaults | 9 年之前 | |
handlers | 9 年之前 | |
meta | 9 年之前 | |
tasks | 9 年之前 | |
templates | 9 年之前 | |
test | 9 年之前 | |
vars | 9 年之前 | |
.gitignore | 9 年之前 | |
.kitchen.yml | 9 年之前 | |
.travis.yml | 9 年之前 | |
Gemfile | 9 年之前 | |
README.md | 9 年之前 |
This role configures and install the gluon-collector service.
Ansible 1.9 and a Debian Linux based OS
Variable | Default | Description |
---|---|---|
gluon_collector_http_port | 8079 | The port on which the REST server should listen on |
gluon_collector_http_address | "[::]" | The address string the REST server should listen on |
gluon_collector_store_type | bolt | The type of datastore to use |
gluon_collector_base_path | /opt/gluon-collector | Where should gluon-collector be installed |
gluon_collector_db_path | "{{gluon_collector_base_path}}/collector.db" | Where is the datastore created |
gluon_collector_config_path | "{{gluon_collector_base_path}}/gluon-collector.yml" | Where configuration is created |
gluon_collector_expire_nodes | 365 | After how many should dead nodes be removed from the datastore |
gluon_collector_log_level | warn | The log level to use |
gluon_collector_log_path | "{{gluon_collector_base_path}}/collector.log" | The location of the log file |
gluon_collector_interval_statistics | 300 | Interval in seconds to request node statistics |
gluon_collector_interval_nodeinfo | 1800 | Interval in seconds to request node infos |
gluon_collector_interval_expire | 3 | After how many intervals is a non responding considered offline |
gluon_collector_user | gluon-collector | The user under which gluon-collector should run |
gluon_collector_group | gluon-collector | The group under whcih gluon-collector should run |
gluon_collector_version | "v1.1" | The version fetch from github releases |
gluon_collector_download_url | "https://github.com/ffdo/node-informant/releases/download/{{gluon_collector_version}}/gluon-collector" | The release download URL |
gluon_collector_use_supervisor | true | If this is false systemd instead of supervisor is used |
gluon_collector_supervisor_config_path | /etc/supervisor/conf.d | The path where the supervisor configuration is written |
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: ansible-gluon-collector
roles:
- role: dereulenspiegel.gluon-collector
gluon_collector_receivers:
- type: announced
port: 21214
interface: bat0
- type: announced
port: 21214
interface: bat1
MIT
An optional section for the role authors to include contact information, or a website (HTML is not allowed).