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).