-
Notifications
You must be signed in to change notification settings - Fork 96
/
influxdb.yml
65 lines (65 loc) · 1.92 KB
/
influxdb.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
- hosts: influxdb
name: InfluxDB
become: true
vars:
hostname: influxdb.galaxyproject.eu
vars_files:
- "secret_group_vars/all.yml"
pre_tasks:
- name: Install Dependencies
become: true
ansible.builtin.package:
name: ['python3-virtualenv', 'python3-docker']
- name: Configure SELinux
ansible.posix.seboolean:
name: "{{ item }}"
state: true
persistent: true
loop:
- httpd_can_network_connect
- name: Create influxdb firewalld service
ansible.builtin.copy:
dest: /etc/firewalld/services/influxdb.xml
content: |
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>influxdb</short>
<description>Time-series database for storing metrics and analytics data</description>
<port protocol="tcp" port="8086"/>
</service>
mode: "0600"
owner: root
group: root
notify: copied_service
handlers:
- name: Reload Firewalld
listen: copied_service
ansible.builtin.service:
name: firewalld
state: reloaded
collections:
- devsec.hardening
roles:
## Starting configuration of the operating system
- role: usegalaxy_eu.firewall
become: true
- role: usegalaxy_eu.handy.os_setup
vars:
enable_hostname: true
enable_powertools: true # geerlingguy.repo-epel role doesn't enable PowerTools repository
enable_remap_user: true
enable_create_user: true
- geerlingguy.repo-epel # Install EPEL repository
- usegalaxy-eu.autoupdates # keep all of our packages up to date
- influxdata.chrony # Keep our time in sync.
- usegalaxy-eu.dynmotd
- hxr.monitor-email
# # Applications
- geerlingguy.docker
- galaxyproject.nginx
- usegalaxy_eu.influxdbserver
- dj-wasabi.telegraf
# hardening
- os_hardening
- ssh_hardening