Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update influx play for fresh vm #1307

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions group_vars/influxdb.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
docker_users:
- centos
# influxdb
influxdb_https_enabled: "true"

Expand Down Expand Up @@ -50,8 +52,8 @@ certbot_agree_tos: --agree-tos
certbot_auth_method: --webroot
certbot_auto_renew: true
certbot_auto_renew_user: root
certbot_auto_renew_hour: "{{ 23 |random(seed=inventory_hostname) }}"
certbot_auto_renew_minute: "{{ 59 |random(seed=inventory_hostname) }}"
certbot_auto_renew_hour: "{{ 23 | random(seed=inventory_hostname) }}"
certbot_auto_renew_minute: "{{ 59 | random(seed=inventory_hostname) }}"
certbot_domains:
- "{{ hostname }}"
certbot_environment: "production" # change to production when ready to go
Expand Down
29 changes: 12 additions & 17 deletions influxdb.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
---
- hosts: influxdb
name: InfluxDB
become: true
vars:
hostname: influxdb.galaxyproject.eu
vars_files:
- "secret_group_vars/all.yml"
pre_tasks:
- name: Set default version of Python
alternatives:
name: python
path: /usr/bin/python3
- name: Install docker pip package
ansible.builtin.pip:
name: docker
- name: Set docker_users (Docker role)
set_fact:
docker_users: "centos"
- name: Install Dependencies
become: true
ansible.builtin.package:
name: ['python3-virtualenv', 'python3-docker']
- name: Configure SELinux
ansible.posix.seboolean:
name: "{{ item }}"
Expand All @@ -38,14 +33,14 @@
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
- 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
- geerlingguy.docker
- galaxyproject.nginx
- usegalaxy_eu.influxdbserver
- dj-wasabi.telegraf
# hardening
Expand Down
Loading