update_motd: apply conventions #71

Merged
erdnaxe merged 11 commits from update_motd into master 2021-11-27 22:34:05 +01:00
7 changed files with 33 additions and 31 deletions
Showing only changes of commit 0979370418 - Show all commits

View file

@ -2,6 +2,10 @@
--- ---
# Install and configure bdd servers at Saclay and at OVH # Install and configure bdd servers at Saclay and at OVH
- hosts: bdd,!re2o-bdd.adm.auro.re,!services-bdd-local.adm.auro.re - hosts: bdd,!re2o-bdd.adm.auro.re,!services-bdd-local.adm.auro.re
vars:
router:
postgresql: PostgreSQL est déployé.
roles: roles:
- postgresql_server - postgresql_server
- update_motd
... ...

View file

@ -5,12 +5,17 @@
vars: vars:
mxisd_releases: https://github.com/kamax-matrix/mxisd/releases mxisd_releases: https://github.com/kamax-matrix/mxisd/releases
mxisd_deb: "{{ mxisd_releases }}/download/v1.3.1/mxisd_1.3.1_all.deb" mxisd_deb: "{{ mxisd_releases }}/download/v1.3.1/mxisd_1.3.1_all.deb"
router:
matrix-synapse: matrix-synapse est déployé.
matrix-appservice-irc: matrix-appservice-irc est déployé.
matrix-appservice-webhooks: matrix-appservice-webhooks est déployé.
roles: roles:
- debian_backports - debian_backports
- nodejs - nodejs
- matrix_synapse - matrix_synapse
- matrix_appservice_irc - matrix_appservice_irc
- matrix_appservice_webhooks - matrix_appservice_webhooks
- update_motd
# Install Matrix services # Install Matrix services
- hosts: matrix-services.adm.auro.re - hosts: matrix-services.adm.auro.re

View file

@ -2,35 +2,52 @@
--- ---
# Set up DHCP servers. # Set up DHCP servers.
- hosts: dhcp-*.adm.auro.re - hosts: dhcp-*.adm.auro.re
vars:
update_motd:
unbound: isc-dhcp-server est déployé.
roles: roles:
- isc_dhcp_server - isc_dhcp_server
- update_motd
# Deploy unbound DNS server (recursive). # Deploy unbound DNS server (recursive).
- hosts: dns-*.adm.auro.re,!dns-aurore*.adm.auro.re - hosts: dns-*.adm.auro.re,!dns-aurore*.adm.auro.re
vars:
update_motd:
unbound: Unbound est déployé.
roles: roles:
- unbound - unbound
- update_motd
# Déploiement du service re2o aurore-firewall et keepalived # Déploiement du service re2o aurore-firewall et keepalived
# radvd: IPv6 SLAAC (/64 subnets, private IPs). # radvd: IPv6 SLAAC (/64 subnets, private IPs).
# Must NOT be on routeur-aurore-*, or will with DHCPv6! # Must NOT be on routeur-aurore-*, or will with DHCPv6!
- hosts: ~routeur-(pacaterie|edc|fleming|gs|rives).*\.adm\.auro\.re - hosts: ~routeur-(pacaterie|edc|fleming|gs|rives).*\.adm\.auro\.re
vars:
router:
unbound: Le routage (avec radvd) est déployé.
roles: roles:
- router - router
- radvd - radvd
- update_motd
# No radvd here # No radvd here
- hosts: ~routeur-aurore.*\.adm\.auro\.re - hosts: ~routeur-aurore.*\.adm\.auro\.re
vars:
router:
unbound: Le routage (avec DHCPv6) est déployé.
roles: roles:
- router - router
- ipv6_edge_router - ipv6_edge_router
- update_motd
# Radius (backup only for now) # Radius (backup only for now)
- hosts: radius-*.adm.auro.re - hosts: radius-*.adm.auro.re
vars:
router:
unbound: FreeRADIUS est déployé.
roles: roles:
- radius - radius
- update_motd
# WIP: Deploy authoritative DNS servers # WIP: Deploy authoritative DNS servers
# - hosts: authoritative_dns # - hosts: authoritative_dns

View file

@ -50,13 +50,4 @@
url: https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-x86_64 url: https://github.com/docker/compose/releases/download/1.24.1/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose dest: /usr/local/bin/docker-compose
mode: "0755" mode: "0755"
- name: Configure MOTD
include_role:
name: update_motd
vars:
motd_messages:
- key: 10-docker
message: >-
Docker est installé sur ce serveur.
... ...

View file

@ -39,14 +39,4 @@
owner: "{{ service_user }}" owner: "{{ service_user }}"
group: nogroup group: nogroup
state: link state: link
- name: Configure MOTD
include_role:
name: update_motd
vars:
motd_messages:
- key: "15-re2o-service-{{ service_name }}"
message: >-
Le service re2o {{ service_name }} est dans
{{ service_homedir }}/{{ service_name }}.
... ...

View file

@ -39,13 +39,4 @@
register: apt_result register: apt_result
retries: 3 retries: 3
until: apt_result is succeeded until: apt_result is succeeded
- name: Configure MOTD
include_role:
name: update_motd
vars:
motd_messages:
- key: 10-unifi-controller
message: >-
Le contrôleur Unifi a été installé sur ce serveur.
... ...

View file

@ -2,8 +2,12 @@
--- ---
# Deploy Docker hosts # Deploy Docker hosts
- hosts: docker-ovh.adm.auro.re,gitea.adm.auro.re,drone.adm.auro.re,stream.adm.auro.re,wikijs.adm.auro.re - hosts: docker-ovh.adm.auro.re,gitea.adm.auro.re,drone.adm.auro.re,stream.adm.auro.re,wikijs.adm.auro.re
vars:
router:
docker: Docker est déployé.
roles: roles:
- docker - docker
- update_motd
# Deploy Passbolt # Deploy Passbolt
- hosts: passbolt.adm.auro.re - hosts: passbolt.adm.auro.re