Add test group with re2o-test

certbot_on_virtu
Alexandre Iooss 2020-01-13 13:27:11 +01:00
parent e7edf6ed2e
commit a14c92391b
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 14 additions and 7 deletions

View File

@ -1,14 +1,11 @@
--- ---
# Deploy common Crans configuration and tools # Deploy common Crans configuration and tools
- hosts: server - hosts: server,test_vm
vars: vars:
# Debian mirror on adm # Debian mirror on adm
debian_mirror: http://mirror.adm.crans.org/debian debian_mirror: http://mirror.adm.crans.org/debian
debian_components: main non-free debian_components: main non-free
# Backup password
backuppc_rsyncd_passwd: "{{ vault_backuppc_rsyncd_passwd }}"
# NTP servers # NTP servers
# TODO get this list with re2o # TODO get this list with re2o
ntp_servers: ntp_servers:
@ -18,10 +15,17 @@
- debian-apt-sources - debian-apt-sources
- common-security - common-security
- common-tools - common-tools
- rsync-client
- ntp-client - ntp-client
- nfs-common - nfs-common
# Deploy backup system
- hosts: server
vars:
# Backup password
backuppc_rsyncd_passwd: "{{ vault_backuppc_rsyncd_passwd }}"
roles:
- rsync-client
# Plug LDAP on all servers # Plug LDAP on all servers
- hosts: server - hosts: server
vars: vars:

View File

@ -2,7 +2,7 @@
# This is a special playbook to clean old stuff from BCFG2 # This is a special playbook to clean old stuff from BCFG2
# it will disapear when BCFG2 will disapear # it will disapear when BCFG2 will disapear
# `apt-mark showmanual` is a good start # `apt-mark showmanual` is a good start
- hosts: server - hosts: server,test_vm
tasks: tasks:
- name: Clean up unused packages - name: Clean up unused packages
apt: apt:

3
hosts
View File

@ -4,6 +4,9 @@
# > We name servers according to location, then type. # > We name servers according to location, then type.
# > Then we regroup everything in global geographic and type groups. # > Then we regroup everything in global geographic and type groups.
[test_vm]
re2o-test.adm.crans.org
[crans_physical] [crans_physical]
charybde.adm.crans.org charybde.adm.crans.org
cochon.adm.crans.org cochon.adm.crans.org

View File

@ -26,7 +26,7 @@
- prometheus-blackbox-exporter - prometheus-blackbox-exporter
# Monitor all hosts # Monitor all hosts
- hosts: server - hosts: server,test_vm
roles: roles:
- prometheus-node-exporter - prometheus-node-exporter