update_motd: apply conventions #71
7 changed files with 33 additions and 31 deletions
4
bdd.yml
4
bdd.yml
|
@ -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
|
||||||
...
|
...
|
||||||
|
|
|
@ -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
|
||||||
|
|
23
network.yml
23
network.yml
|
@ -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
|
||||||
|
|
|
@ -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.
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -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 }}.
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -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.
|
|
||||||
...
|
...
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue