summaryrefslogtreecommitdiff
path: root/roles
AgeCommit message (Collapse)Author
2024-06-30Migrate from `yes` to `true`Dmitry Ilvokhin
2024-06-29Add wg-quick@wgtor0 as dependency to torDmitry Ilvokhin
Otherwise tor could not bind ports on wgtor0 ip addresses as it wasn't up yet.
2024-06-23Remove trailing spacesDmitry Ilvokhin
2024-06-23Introduce sysupgrade playbookDmitry Ilvokhin
Playbook sysupgrade.yml is a attempt to do automatic full system upgrade. Currently logic is completely automated for happy path. 1. Shutdown machine. 2. Take snapshot from the machine. 3. Power on machine back. 4. Update archlinux-keyring. 5. Upgrade everything. 6. Reboot. If something is working, then we are done. Otherwise, restore from snapshot manually and try to figure out what went wrong.
2024-06-15Tor -> tor for consistencyDmitry Ilvokhin
2024-06-15WireGuard -> wireguard for consistencyDmitry Ilvokhin
2024-06-15Rename wg0 interface to wgnet0Dmitry Ilvokhin
2024-06-15Rename wg1 interface to wgvpn0Dmitry Ilvokhin
2024-06-15Rename wg2 interface to wgtor0Dmitry Ilvokhin
2024-06-14Mark gate as jumphostDmitry Ilvokhin
2024-06-14Add comment why we use reload for wgnetDmitry Ilvokhin
2024-06-14Fix wrong state restart -> restartedDmitry Ilvokhin
2024-06-14Manually create /etc/systemd/resolved.conf.d dirDmitry Ilvokhin
2024-06-09Migrate to restart instead of reload for wgvpnDmitry Ilvokhin
For the same reason restart is used in wgtor: there are `iptables` commands in `PostUp` and `PostDown` which are not running on reload.
2024-06-09Add tor roleDmitry Ilvokhin
2024-06-09Add wgtor role for Tor middleboxDmitry Ilvokhin
2024-06-01Migrate netfwd to systemd-sysctlDmitry Ilvokhin
/etc/sysctl.conf doesn't work, see [1]. Intrestingly enough, I catched it only with system upgrade and reboot. Just reboot didn't catch it for some reason, or I didn't notice. [1]: https://wiki.archlinux.org/title/sysctl
2024-05-27Remove semicolons from wgvpn configDmitry Ilvokhin
2024-05-27Add wgvpn role for WireGuard VPNDmitry Ilvokhin
2024-05-26Remove wgnet networkd filesDmitry Ilvokhin
2024-05-26Move sysctl net forwarding to separate roleDmitry Ilvokhin
2024-05-19Migrate away from networkd for wireguardDmitry Ilvokhin
Migrate due to a bug [1], which wasn't fixed for some time. [1]: https://github.com/systemd/systemd/issues/25547
2024-05-19Wireguard overlay network setupDmitry Ilvokhin
Need to migrate away from networkd, because it can't add new wireguard peers now out of the box without hacks. [1]: https://github.com/systemd/systemd/issues/25547
2024-05-06Add wireguard roleDmitry Ilvokhin
2024-05-04Push public key from another laptop to serversDmitry Ilvokhin
2024-05-03Open git.ilvokhin.com to the worldDmitry Ilvokhin
2024-05-03Init repositories as private by defaultDmitry Ilvokhin
2024-05-03Add clone URLs for repositoriesDmitry Ilvokhin
2024-05-03Do not export everything with git-daemonDmitry Ilvokhin
We should export only repositories with git-daemon-export-ok file inside.
2024-05-03Rename .htpasswd to htpasswdDmitry Ilvokhin
2024-05-03Add dots to commentsDmitry Ilvokhin
2024-05-03List repositories explicitly instead of scan-pathDmitry Ilvokhin
This allowes to have private repositories on the same server.
2024-04-26Remove favicon from cgitDmitry Ilvokhin
We set root to /usr/share/webapps/cgit for cgit location. This directory contains favicon which served automatically. One way to stop it is to remove favicon, but every package update will bring it back in. So I just hardcoded into nginx config return code of 404 for favicon request to do not serve it.
2024-04-26Fix indent in nginx config for cgitDmitry Ilvokhin
2024-04-20Use systemd service instead of service for certbotDmitry Ilvokhin
To properly reload systemd in case of changes in unit file.
2024-04-20Add paccache role to all hostsDmitry Ilvokhin
2024-04-19Fix postfix virtual_transport: use dovecot-lmtpDmitry Ilvokhin
2024-04-19Migrate postfix from hash to lmdb dbDmitry Ilvokhin
2024-04-19Setup lmtp protocol for dovecotDmitry Ilvokhin
2024-04-14Make certificate updates work for nginxDmitry Ilvokhin
Currently, we obtain certificates from Let's Encrypt with standalone mode, so when we do renew, certbot tries to run it is own webserver on port 80, but this port is already in use by nginx. Stop nginx, before renewal. This is quite hacky, but should work. Proper solution is to split certificate role by standalone and non-standalone versions.
2024-04-07Add master.cf file to postfix roleDmitry Ilvokhin
Enable submission to send mail.
2024-04-07Reverse dependency chain dovecot -> postfixDmitry Ilvokhin
Postfix can start without dovecot, but dovecot can't without postfix, because it uses postfix user to create unix socket.
2024-04-07Add lsof to minimal installationDmitry Ilvokhin
2024-04-07Set proper hostname and restrict trusted networksDmitry Ilvokhin
2024-04-07Add forgotten handler for alias updateDmitry Ilvokhin
2024-04-07Setup correct alias for root mailDmitry Ilvokhin
2024-04-06Add postfix roleDmitry Ilvokhin
2024-04-06Add dovecot roleDmitry Ilvokhin
2024-04-06Add certmail roleDmitry Ilvokhin
Certificate are required for both dovecot and postfix roles. This role is to simplify reuse of the same logic.
2024-04-06Listen inet socket instread of unix for opendkimDmitry Ilvokhin
This is done to avoid putting postfix and opendkim at the same group.