Skip to content
Snippets Groups Projects
Commit 569fc55a authored by ale's avatar ale
Browse files

Rename roles to follow a readable schema

Give all roles a "float-" prefix to avoid collisions with user-defined
roles.

Separate Ansible roles into three main categories:

- *base* for the low-level mechanics of getting the machines ready
  to host services, provide service discovery, credentials, and other
  such mechanisms.

- *infra* for the configuration of services that are part of the
  float infrastructure but run on the base layer themselves

- *util* for internal utility roles
parent 97070ed3
No related branches found
No related tags found
1 merge request!158Rename roles to follow a readable schema
Showing
with 35 additions and 19 deletions
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
- hosts: sso-server - hosts: sso-server
roles: roles:
- sso-server - float-infra-sso-server
- hosts: user-meta-server - hosts: user-meta-server
roles: roles:
- sso-server - float-infra-sso-server
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
- hosts: all - hosts: all
roles: roles:
- base - float-base
- float-credentials - float-base-service-credentials
- vagrant-compat - float-util-vagrant-compat
- hosts: net-overlay - hosts: net-overlay
roles: roles:
- net-overlay - float-base-net-overlay
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- hosts: all - hosts: all
roles: roles:
- docker - float-base-docker
serial: serial:
- 1 - 1
- 2 - 2
......
...@@ -4,19 +4,19 @@ ...@@ -4,19 +4,19 @@
- hosts: frontend - hosts: frontend
roles: roles:
- nginx - float-infra-nginx
- dns - float-infra-dns
- haproxy - float-infra-haproxy
- hosts: admin-dashboard - hosts: admin-dashboard
roles: roles:
- admin-dashboard - float-infra-admin-dashboard
- hosts: acme - hosts: acme
roles: roles:
- acme - float-infra-acme
- hosts: reports-collector - hosts: reports-collector
roles: roles:
- reports-collector - float-infra-reports-collector
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
- hosts: log-collector - hosts: log-collector
roles: roles:
- log-collector - float-infra-log-collector
- hosts: backup-metadata - hosts: backup-metadata
roles: roles:
- backup-metadata - float-base-backup-metadata
- hosts: prometheus-lts - hosts: prometheus-lts
roles: roles:
- prometheus-lts - float-infra-prometheus-lts
# Configure 'thanos query' on 'prometheus' hosts to discover prometheus-lts # Configure 'thanos query' on 'prometheus' hosts to discover prometheus-lts
- hosts: prometheus - hosts: prometheus
roles: roles:
- thanos-query-lts - float-infra-thanos-query-lts
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
- hosts: prometheus - hosts: prometheus
roles: roles:
- prometheus - float-infra-prometheus
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
- hosts: all - hosts: all
roles: roles:
- volumemgr - float-base-volumemgr
Roles in this directory all share a "float-" prefix to avoid collisions
with user-defined roles. They are roughly grouped into sections:
* *base* for the most low-level functionality, setting up the machines
and preparing them to run cointainers, along with distributing the
necessary credentials.
* *infra* for roles meant to configure specific services that are part
of the wider float "infrastructure" (but with few exceptions run on
top of the *base* layer, i.e. within containers etc).
* *util* for internal roles that are included by other roles, either to
expose common functionality to user roles (geoip, mariadb instances),
or to handle Ansible-related logic shared by multiple roles.
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment