Compare commits
2 commits
master
...
move_host_
Author | SHA1 | Date | |
---|---|---|---|
|
fa237cdea3 | ||
|
74871c1ea8 |
7 changed files with 83 additions and 58 deletions
|
@ -87,24 +87,4 @@ apartment_block_dhcp: "{{ apartment_block }}"
|
|||
ipv6_base_prefix: "2a09:6840"
|
||||
|
||||
is_aurore_host: "{{ 'aurore_vm' in group_names }}"
|
||||
|
||||
# Borgbackup
|
||||
borg_keep_daily: 7
|
||||
borg_keep_weekly: 4
|
||||
borg_keep_monthly: 12
|
||||
borg_backup_directories:
|
||||
- /etc
|
||||
- /var
|
||||
borg_backup_exclude:
|
||||
- /var/log
|
||||
- /var/lib/docker
|
||||
- /var/lib/lxcfs
|
||||
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
||||
|
||||
borg_server_host: 10.128.0.4
|
||||
|
||||
rsyslog_outputs:
|
||||
- proto: relp
|
||||
address: 10.128.0.241
|
||||
port: 20514
|
||||
...
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
borg_keep_hourly: 6
|
||||
borg_keep_daily: 7
|
||||
borg_keep_weekly: 4
|
||||
borg_keep_monthly: 12
|
||||
borg_backup_directories:
|
||||
- "/etc"
|
||||
- "/var"
|
||||
- "/data_nextcloud"
|
||||
- "/data_gitea"
|
||||
- "/data_mail"
|
||||
...
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
borg_backup_directories:
|
||||
- "/etc/"
|
||||
- "/var/"
|
||||
borg_backup_exclude: []
|
||||
|
||||
rsyslog_collector_base_dir: /var/log/remote
|
||||
rsyslog_inputs:
|
||||
- proto: relp
|
||||
port: 20514
|
||||
- proto: udp
|
||||
port: 514
|
||||
- proto: tcp
|
||||
port: 6514
|
||||
rsyslog_outputs: []
|
||||
...
|
|
@ -1,3 +0,0 @@
|
|||
---
|
||||
borg_server_backups_dir: /borg
|
||||
...
|
|
@ -2,6 +2,7 @@
|
|||
---
|
||||
- hosts: perceval.adm.auro.re
|
||||
vars:
|
||||
borg_server_backups_dir: /borg
|
||||
update_motd:
|
||||
borgbackup_server: >-
|
||||
Les sauvegardes (borg) sont stockées dans
|
||||
|
@ -10,23 +11,82 @@
|
|||
- borgbackup_server
|
||||
- update_motd
|
||||
|
||||
- hosts: all,!unifi,!unifi-*,!bdd
|
||||
- hosts: all,!unifi,!unifi-*,!bdd,!caradoc.adm.auro.re
|
||||
vars:
|
||||
borg_server_host: 10.128.0.4
|
||||
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
||||
borg_backup_directories:
|
||||
- /etc
|
||||
- /var
|
||||
borg_backup_exclude:
|
||||
- /var/log
|
||||
- /var/lib/docker
|
||||
- /var/lib/lxcfs
|
||||
update_motd:
|
||||
borgbackup_client: >-
|
||||
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
||||
roles:
|
||||
- borgbackup_client
|
||||
#- borgbackup_client
|
||||
- update_motd
|
||||
|
||||
# On NAS, also backup NAS data
|
||||
- hosts: caradoc.adm.auro.re
|
||||
vars:
|
||||
borg_server_host: 10.128.0.4
|
||||
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
||||
borg_backup_directories:
|
||||
- /etc
|
||||
- /var
|
||||
- /data_nextcloud
|
||||
- /data_gitea
|
||||
- /data_mail
|
||||
borg_backup_exclude:
|
||||
- /var/log
|
||||
- /var/lib/docker
|
||||
- /var/lib/lxcfs
|
||||
borg_keep_hourly: 6
|
||||
update_motd:
|
||||
borgbackup_client: >-
|
||||
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
||||
roles:
|
||||
#- borgbackup_client
|
||||
- update_motd
|
||||
|
||||
# On databases server, also backup databases
|
||||
- hosts: bdd
|
||||
vars:
|
||||
borg_server_host: 10.128.0.4
|
||||
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
||||
borg_backup_directories:
|
||||
- /etc
|
||||
- /var
|
||||
borg_backup_exclude:
|
||||
- /var/log
|
||||
- /var/lib/docker
|
||||
- /var/lib/lxcfs
|
||||
borg_postgresql_databases: true
|
||||
update_motd:
|
||||
borgbackup_client: >-
|
||||
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
||||
roles:
|
||||
- borgbackup_client
|
||||
#- borgbackup_client
|
||||
- update_motd
|
||||
|
||||
# On log server, also backup logs
|
||||
- hosts: log.adm.auro.re
|
||||
vars:
|
||||
borg_server_host: 10.128.0.4
|
||||
borg_encryption_passphrase: "{{ vault_borg_encryption_passphrase }}"
|
||||
borg_backup_directories:
|
||||
- /etc
|
||||
- /var
|
||||
borg_backup_exclude:
|
||||
- /var/lib/docker
|
||||
- /var/lib/lxcfs
|
||||
update_motd:
|
||||
borgbackup_client: >-
|
||||
BorgBackup est déployé (/etc/borgmatic/config.yaml)
|
||||
roles:
|
||||
#- borgbackup_client
|
||||
- update_motd
|
||||
...
|
||||
|
|
|
@ -1,10 +1,26 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: log.adm.auro.re
|
||||
vars:
|
||||
rsyslog_collector_base_dir: /var/log/remote
|
||||
rsyslog_inputs:
|
||||
- proto: relp
|
||||
port: 20514
|
||||
- proto: udp
|
||||
port: 514
|
||||
- proto: tcp
|
||||
port: 6514
|
||||
rsyslog_outputs: []
|
||||
roles:
|
||||
- rsyslog_common
|
||||
- rsyslog_collector
|
||||
|
||||
- hosts: all,!unifi
|
||||
- hosts: all,!log.adm.auro.re,!unifi
|
||||
vars:
|
||||
rsyslog_outputs:
|
||||
- proto: relp
|
||||
address: 10.128.0.241
|
||||
port: 20514
|
||||
roles:
|
||||
- rsyslog_common
|
||||
...
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
borg_keep_hourly: 0
|
||||
borg_keep_daily: 0
|
||||
borg_keep_weekly: 0
|
||||
borg_keep_monthly: 0
|
||||
borg_keep_daily: 7
|
||||
borg_keep_weekly: 4
|
||||
borg_keep_monthly: 12
|
||||
borg_server_user: borgbackup
|
||||
borg_server_group: borgbackup
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue