Commit graph

197 commits

Author SHA1 Message Date
1cce9c2457 Minor renaming 2023-01-17 16:18:10 +01:00
19aae836da Add binary installation for forgejo 2023-01-17 16:16:42 +01:00
16241c9037 Start new role forgejo 2023-01-16 14:36:54 +01:00
292fc3adba Use variables for gitea directories 2023-01-16 14:32:13 +01:00
97aa822ee6 At startup, fail2ban is not started so nftables post-hook exits with 1 2023-01-16 13:34:38 +01:00
947723155e Fix some errors in gitea playbook 2023-01-16 10:37:40 +01:00
230a42bc24 Update vars after gitea 1.18.0 breaking changes 2022-12-30 22:25:00 +01:00
90814de597 Don't use date in gitea dump pushing, use latest present dump on the server instead 2022-12-28 10:53:52 +01:00
d4c2cc1e75 Move some tasks from gitea to gitea repos 2022-12-28 10:29:16 +01:00
05a29560af Move some tasks from gitea to gitea backup 2022-12-28 10:26:00 +01:00
c30e388349 Move some tasks from gitea main to gitea binary 2022-12-27 22:08:57 +01:00
a9843c1bca /var/lib/gitea is 0750 so stat needs become true 2022-12-27 22:03:54 +01:00
e74c8b511d Move gitea home to /var/lib/gitea 2022-12-27 11:33:45 +01:00
e49610d551 Move some tasks from gitea main to gitea unix 2022-12-27 10:51:38 +01:00
3a4b058bcb Fix missing var 2022-12-26 23:32:24 +01:00
0e78747b10 Rename certbot to setup_certbot 2022-12-26 08:13:00 +01:00
09e91c03d3 Merge deuxpuissanceiks_mariadb into deuxpuissanceiks role 2022-12-26 08:08:43 +01:00
b02893bc26 Merge deuxpuissanceiks_apache2 into deuxpuissanceiks role 2022-12-26 08:04:11 +01:00
1cc9d38c5c Merge gitea_mariadb into gitea role 2022-12-26 07:58:38 +01:00
f864a1539e Rename vars 2022-12-26 07:57:57 +01:00
8c03857a64 Merge gitea_apache2 into gitea role 2022-12-26 07:57:45 +01:00
c8fed5771f Merge gitea_fail2ban into gitea role 2022-12-26 07:14:02 +01:00
5b4e5b84af Don't report changed on file checks 2022-12-23 23:25:57 +01:00
04ca1104c4 Fix gitea_backup script: log into one file, use rsync instead of mv 2022-12-23 23:22:51 +01:00
da9bfe0d00 Ask for path of gitea dump to push 2022-12-23 22:35:45 +01:00
1d84b0dd90 Fix gitea_fail2ban needed gitea log file to be present 2022-12-23 22:15:03 +01:00
e4ceefd575 Fix config for gitea log dir 2022-12-23 22:12:36 +01:00
124309a6d6 Setup logrotate 2022-12-23 21:35:04 +01:00
322dabe243 Change indentation from tabs to spaces 2022-12-23 21:34:25 +01:00
2751a91608 Fix gitea crontab and log into /var/log/gitea 2022-12-23 21:21:15 +01:00
87327d006d Fix some linting 2022-12-16 21:25:23 +01:00
06eb090c33 Remove /media location from 2px 2022-10-02 00:13:06 +02:00
a193020142 Don't recurse directory mode, or it chmods existing files 2022-10-01 11:48:26 +02:00
665ef414a0 Get ssh fingerprints and add condition for uploading the SSH key 2022-10-01 11:47:15 +02:00
6587f1621a Generate SSH keys for git and use gitea's API to push the public key 2022-10-01 01:40:20 +02:00
bf5d668fae Gitea service is not reloadable 2022-10-01 00:41:21 +02:00
94f69eea24 Add gitea_user and gitea_pass, for use with gitea's API 2022-10-01 00:39:49 +02:00
abaef4bf90 Add missing handler 2022-10-01 00:29:09 +02:00
225a86331b Permit outgoing SSH too 2022-10-01 00:20:53 +02:00
a12b50a01f Setup gitea-backup crontab 2022-09-28 22:03:57 +02:00
1dfe585364 Rename role 2px to deuxpuissanceiks 2022-09-28 21:33:45 +02:00
3f9a84db55 Add TODO note 2022-08-28 22:17:48 +02:00
37551c095c Fix conditional 2022-08-28 21:56:34 +02:00
4191fb9e05 Merge roles tunuifranken and tunuifranken_apache2 2022-08-28 21:47:38 +02:00
c432997de2 Move gitea dump prompt to gitea role 2022-08-21 16:15:44 +02:00
e33b3dbe41 Move gitea handlers to gitea role 2022-08-21 12:13:41 +02:00
812f86b1b5 Remove newline 2022-08-20 01:06:26 +02:00
1d2a293d4f Make nftables restart fail2ban when reloaded 2022-08-20 00:57:59 +02:00
1acafce7c0 Gitea service reload is not applicable 2022-08-15 21:53:14 +02:00
ac7d993389 Enable push to org 2022-07-02 09:41:56 +02:00
00bd567b12 Activate user registration for gitea 2022-07-01 21:22:32 +02:00
15f84e1b1f Fix lint nagging 2022-06-25 14:48:38 +02:00
9ab4d5a70c Minor rearrangement and add comment to zipfile prompt 2022-06-08 22:31:46 +02:00
e0bdcf5d17 Reload gitea.service if app.ini is updated 2022-06-08 22:18:12 +02:00
259385065d Fix task name 2022-06-08 22:14:29 +02:00
36c061b8a4 Add push-to-create option for gitea 2022-05-01 22:22:57 +02:00
b08eb5255a Remove useless keys in gitea app.ini, make sure app.ini's dir belongs to git 2022-04-13 23:27:58 +02:00
196aa1ed18 Fix gitea_backup.sh script to correctly include datadir 2022-04-13 23:27:19 +02:00
e0820766ae Minor name change 2022-04-13 22:21:05 +02:00
ebf72b0aa4 Add logging in gitea_backup script 2022-04-13 22:06:09 +02:00
fafe84630f Fix gitea_backup.sh script 2022-04-11 15:10:28 +02:00
8a766646f0 Set sudoer permissions for git 2022-04-10 17:26:53 +02:00
914c4a0cd6 Fix gitea_backup.sh to avoid hanging prompts 2022-04-10 16:55:34 +02:00
cdeeebac32 Add gitea restore command to deploy repos 2022-04-10 13:54:32 +02:00
4424ad8877 gitea service has to be running for deploying the repos 2022-04-10 12:44:11 +02:00
381059eaa7 Don't download gitea binary if not needed 2022-04-09 13:52:53 +02:00
1964e28d7d Escape backup script 2022-04-09 13:46:41 +02:00
3aa6ac1bd5 Copy gitea_backup.sh script 2022-04-09 13:30:32 +02:00
f2d3382db5 Fix arch for arm 2022-04-09 13:03:23 +02:00
83e65f7afb Rename handlers 2022-04-09 12:51:52 +02:00
cf327ca2d0 Setup fail2ban for gitea 2022-04-09 12:47:16 +02:00
9616ab751b Add role gitea-apache2 2022-04-09 12:12:45 +02:00
ecdb15c942 Add fail2ban dependency for gitea with todo note 2022-04-09 11:47:42 +02:00
7441940baa Move gpg verification to handlers 2022-04-09 11:04:23 +02:00
42d3c7eb40 Add changed_when to gpg command 2022-04-08 22:54:14 +02:00
231da79a9c Verify gitea binary 2022-04-08 00:10:43 +02:00
c91cd93b6b Download gitea binary 2022-04-07 23:50:18 +02:00
1b39e5de29 Add app.ini template for gitea with vars 2022-04-07 22:43:12 +02:00
51305f107e Create gitea directories 2022-04-07 21:14:10 +02:00
530e5e6800 Add git user and group 2022-04-07 21:00:33 +02:00
091d3c75db Check db connections 2022-04-07 20:45:01 +02:00
a3928fde59 Add collation and charset for giteadb 2022-04-07 20:34:44 +02:00
f7d09cb45d Update description text for task 2022-04-07 20:13:38 +02:00
8aaa91eda2 Set up db for gitea 2022-04-06 21:32:51 +02:00
1d0c04b7d0 Fix RewriteRule 2022-04-01 08:26:02 +02:00
f527901eb9 Add clone repo for tunuifranken.info 2022-03-28 16:32:55 +02:00
afd71639f4 Add vhost for tunuifranken.info 2022-03-28 16:02:40 +02:00
38d0d29481 Use variable for user in 2px apache conf 2022-03-24 20:19:13 +01:00
fbf9cedf05 Start adding gitea role 2022-03-21 15:39:06 +01:00
d403d0eef6 Add ssl conf and nft rule for certbot 2022-03-15 15:53:54 +01:00
e6c8aa3cee Move module enabling to certbot role 2022-03-15 15:31:12 +01:00
0801df2eb7 Start mariadb after installation 2022-03-15 13:35:51 +01:00
5cbd147e87 Fix small errors 2022-03-13 22:41:08 +01:00
f92b5cde57 Add fail2ban role 2022-03-13 22:31:02 +01:00
ddd4df9778 Rename 'install' roles to 'setup' roles 2022-03-13 12:52:13 +01:00
75e2821e36 Write role nftables from ee 2022-03-13 12:46:07 +01:00
fb864fb54d Add certbot renewal and nftables role 2022-03-13 11:46:24 +01:00
fd1f692b88 Add certbot apache conf 2022-03-13 11:30:35 +01:00
437be396b3 Remove useless quotes 2022-03-13 11:13:43 +01:00
0b2efffdb4 Move common inclusion to playbook 2022-03-13 10:55:09 +01:00