From c359a27e42dfa4babd98aa70ea7848d86b84ba75 Mon Sep 17 00:00:00 2001 From: VC Date: Fri, 5 Jul 2024 11:53:38 +0200 Subject: [PATCH] refactor: move inventory to dir --- inventory/production.yml | 283 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 283 insertions(+) create mode 100644 inventory/production.yml diff --git a/inventory/production.yml b/inventory/production.yml new file mode 100644 index 0000000..eb536f9 --- /dev/null +++ b/inventory/production.yml @@ -0,0 +1,283 @@ +--- + +all: + vars: + ansible_python_interpreter: /usr/bin/python3 + +router: + hosts: + machinbox.mateu.be: + +hypervisors: + hosts: + serenor.dmz.mateu.be: + +scw_cloud: + hosts: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + +borgbackup: + children: + borg_server: + borg_client: + +borg_server: + hosts: + serenor.dmz.mateu.be: + +borg_client: + hosts: + muse-HP-EliteBook-820-G2.home.arpa: + borg_backup_path: + - /home + - /etc + borg_backup_hour: 21 + borg_backup_minute: 0 + baybay-ponay.mateu.be: + borg_backup_path: + - /home + - /etc + borg_backup_excluded_path: + - /home/.snapshots + borg_backup_hour: 19 + borg_backup_minute: 30 + bt.dmz.mateu.be: + borg_backup_path: + - /etc + - /var/lib/transmission-daemon + web1.dmz.mateu.be: + web2.dmz.mateu.be: + web3.dmz.mateu.be: + pt1.dmz.mateu.be: + mail.dmz.mateu.be: + borg_backup_path: + - /home + - /etc + - /var/lib/mailman + jabber.dmz.mateu.be: + borg_backup_path: + - /etc + - /var/lib/prosody + voice1.dmz.mateu.be: + borg_backup_path: + - /etc + - /var/lib/mumble-server + masto1.dmz.mateu.be: + borg_backup_path: + - /srv + - /etc + - /var/lib/scootaloo + borg_backup_excluded_path: + - /srv/docker/m.nintendojo.fr/public + garage1.dmz.mateu.be: + borg_backup_path: + - /etc + - /var/lib/private/garage + +garageservers: + children: + garage_prd_cluster: + hosts: + garage1.dmz.mateu.be: + garage2.dmz.mateu.be: + garage3.dmz.mateu.be: + garagegw1.dmz.mateu.be: + +elasticsearchservers: + hosts: + es1.dmz.mateu.be: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + +nut: + children: + nut_server: + nut_client: + +nut_server: + hosts: + serenor.dmz.mateu.be: + +nut_client: + hosts: + serenor.dmz.mateu.be: + +webservers: + hosts: + bt.dmz.mateu.be: + web_hostname: + - sonarr.mateu.be + - bt.mateu.be + - btf.mateu.be + garagegw1.dmz.mateu.be: + web_hostname: + - garage.mateu.be + - mastodon-ndfr.garage.mateu.be + - medias.m.nintendojo.fr + - nextcloud-libertus.garage.mateu.be + - peertube-videos-ndfr.garage.mateu.be + - videos.p.nintendojo.fr + - peertube-playlists-ndfr.garage.mateu.be + - playlists.p.nintendojo.fr + web1.dmz.mateu.be: + web_hostname: + - fav.libertus.eu + - rss.libertus.eu + - o.libertus.eu + - blog.libertus.eu + - mail.libertus.eu + - perso.nintendojo.fr + - perso.libertus.eu + - r.mateu.be + web2.dmz.mateu.be: + web_hostname: + - analyse.nintendojo.fr + - nintendojo.fr + - www.nintendojo.fr + - forum.nintendojo.fr + web3.dmz.mateu.be: + web_hostname: + - sebicomics.com + - www.sebicomics.com + masto1.dmz.mateu.be: + web_hostname: + - m.nintendojo.fr + jabber.dmz.mateu.be: + web_hostname: + - libertus.eu + - upload.libertus.eu + - xmpp.libertus.eu + voice3.dmz.mateu.be: + web_hostname: + - radio.nintendojo.fr + mail.dmz.mateu.be: + web_hostname: + - imap.libertus.eu + - smtp.libertus.eu + - mm.pipoworld.fr + - mm.nintendojo.fr + munin.dmz.mateu.be: + web_hostname: + - munin.mateu.be + pt1.dmz.mateu.be: + web_hostname: + - p.nintendojo.fr + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + web_hostname: + - nupes.social + - medias.nupes.social + +peertubeservers: + hosts: + pt1.dmz.mateu.be: + +phpservers: + hosts: + web1.dmz.mateu.be: + php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'intl', 'curl', 'gettext', 'imap', 'zip', 'apcu'] + php_memory_limit: "512M" + web2.dmz.mateu.be: + php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'xml', 'bcmath', 'curl', 'imagick'] + web3.dmz.mateu.be: + php_modules: ['opcache', 'mysql', 'mbstring', 'gd', 'xml', 'bcmath', 'curl', 'imagick'] + +dockerservers: + hosts: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + +mariadbservers: + hosts: + web1.dmz.mateu.be: + web2.dmz.mateu.be: + web3.dmz.mateu.be: + +pgsqlservers: + hosts: + masto1.dmz.mateu.be: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + +mastodonservers: + hosts: + masto1.dmz.mateu.be: + +rorservers: + hosts: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + masto1.dmz.mateu.be: + +resticservers: + hosts: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + restic_backup_path: + - /srv + - /home + - /etc + - /var/lib/scootaloo + - /usr/local + restic_backup_excluded_path: + - /srv/docker/nupes.social/public + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + +mailservers: + hosts: + mail.dmz.mateu.be: + +xmppservers: + hosts: + jabber.dmz.mateu.be: + +loadbalancers: + hosts: + haproxy.dmz.mateu.be: + +transmission: + hosts: + bt.dmz.mateu.be: + +mumbleservers: + hosts: + voice1.dmz.mateu.be: + +icecastservers: + hosts: + voice3.dmz.mateu.be: + +rsyslogservers: + hosts: + syslog.dmz.mateu.be: + +muninservers: + hosts: + munin.dmz.mateu.be: + +disabled_loadbalanced_webservers: + hosts: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + +disabled_munin: + hosts: + baybay-ponay.mateu.be: + muse-HP-EliteBook-820-G2.home.arpa: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + +disabled_syslog: + hosts: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + baybay-ponay.mateu.be: + machinbox.mateu.be: + muse-HP-EliteBook-820-G2.home.arpa: + +fedinupesservers: + hosts: + 93b2685c-9087-4e52-a66f-bf44bfc4a13a.pub.instances.scw.cloud: + 20b4f083-4ef3-4a82-b15c-edbc31aa1731.pub.instances.scw.cloud: + +ftpservers: + hosts: + ftp.dmz.mateu.be: + +domservers: + hosts: + dom.dmz.mateu.be: