Initial commit
This commit is contained in:
commit
dcc0822e6b
5 changed files with 92 additions and 0 deletions
13
LICENSE
Normal file
13
LICENSE
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2019 Wilfried OLLIVIER <wollivier@fdn.fr>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
24
README.md
Normal file
24
README.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
galaxy-influx2
|
||||||
|
==============
|
||||||
|
|
||||||
|
Install Influx DB (2) timeseries server on Debian
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Role Variables
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Dependencies
|
||||||
|
------------
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
Example Playbook
|
||||||
|
----------------
|
||||||
|
|
||||||
|
- hosts: servers
|
||||||
|
roles:
|
||||||
|
- role: galaxy-influx2
|
20
meta/main.yml
Normal file
20
meta/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
galaxy_info:
|
||||||
|
author: Wilfried OLLIVIER
|
||||||
|
description: Install Influx DB (2) timeseries server on Debian
|
||||||
|
company: none
|
||||||
|
|
||||||
|
license: WTFPL
|
||||||
|
|
||||||
|
min_ansible_version: "2.4"
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: Debian
|
||||||
|
versions:
|
||||||
|
- bullseye
|
||||||
|
|
||||||
|
galaxy_tags:
|
||||||
|
- influxdb2
|
||||||
|
- debian
|
||||||
|
- timeseries
|
||||||
|
|
||||||
|
dependencies: []
|
32
tasks/main.yml
Normal file
32
tasks/main.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
- name: Ensure apt-transport-https
|
||||||
|
apt:
|
||||||
|
name: apt-transport-https
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Ensure influxdata signing key
|
||||||
|
apt_key:
|
||||||
|
url: "{{ influx.repo }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Ensure influxdata repo
|
||||||
|
apt_repository:
|
||||||
|
repo: deb https://repos.influxdata.com/debian {{ ansible_distribution_release }} stable
|
||||||
|
state: present
|
||||||
|
filename: influxdata
|
||||||
|
|
||||||
|
- name: Ensure influx2 and influx-cli
|
||||||
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
with_items:
|
||||||
|
- influxdb2
|
||||||
|
- influxdb2-cli
|
||||||
|
|
||||||
|
- name: Ensure influx is started and enabled
|
||||||
|
systemd:
|
||||||
|
name: influxdb
|
||||||
|
state: started
|
||||||
|
enabled: yes
|
3
vars/main.yml
Normal file
3
vars/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
influx:
|
||||||
|
repo: https://repos.influxdata.com/influxdb.key
|
Loading…
Reference in a new issue