https://github.com/levonet/ansible-docker-influxdb
Ansible role for Configure and start InfluxDB in a docker container
https://github.com/levonet/ansible-docker-influxdb
Last synced: 4 months ago
JSON representation
Ansible role for Configure and start InfluxDB in a docker container
- Host: GitHub
- URL: https://github.com/levonet/ansible-docker-influxdb
- Owner: levonet
- License: mit
- Created: 2018-07-20T16:36:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-21T06:25:14.000Z (almost 8 years ago)
- Last Synced: 2025-07-12T23:42:28.303Z (11 months ago)
- Homepage: https://galaxy.ansible.com/levonet/docker_influxdb
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
InfluxDB Role
=============
Configure and start InfluxDB in a docker container using the official image `influxdb:latest`.
[More information](https://hub.docker.com/r/library/influxdb/) about using docker image.
Role Variables
--------------
- `docker_influxdb_name` (default: influxdb): This name used in name of home folder path and in name of container.
- `docker_influxdb_image` (default: influxdb:latest)
- `docker_influxdb_directory_volumes` (optional): Mount folders into docker
- `docker_influxdb_file_volumes` (optional): Mount files into docker
- `docker_influxdb_ports` (default: [8086])
- `docker_influxdb_env` (optional)
- `docker_influxdb_network_mode` (default: host): Connect the container to a network.
- `docker_influxdb_networks` (default: []): List of networks the container belongs to.
- `docker_influxdb_log_driver` (default: json-file): Specify the logging driver.
- `docker_influxdb_log_options` (optional): Dictionary of options specific to the chosen log_driver. See [Configure logging drivers](https://docs.docker.com/engine/admin/logging/overview/) for details.
Dependencies
------------
- `docker`
Example Playbook
----------------
```yaml
- hosts: all
become: yes
become_method: sudo
roles:
- role: levonet.docker_influxdb
docker_influxdb_env:
INFLUXDB_HTTP_LOG_ENABLED: "false"
INFLUXDB_GRAPHITE_ENABLED: "true"
docker_influxdb_ports:
- 8086:8086
- 2003:2003
docker_influxdb_log_driver: syslog
docker_influxdb_log_options:
syslog-facility: local0
tag: "{{ docker_influxdb_name }}"
```
License
-------
[MIT](https://opensource.org/licenses/MIT)
Author Information
------------------
This role was created by [Pavlo Bashynskyi](https://github.com/levonet)