1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00
Commit graph

101 commits

Author SHA1 Message Date
L3D
9b5db4c896
add DEFAULT_PRIVATE option and increment version 2021-07-25 01:18:59 +02:00
L3D
ab15ba77fb
fix linting 2021-07-19 15:22:43 +02:00
L3D
1906c68636
add gitea_repository_upload_extra_config to defaults 2021-07-19 15:18:38 +02:00
L3D
011f8095b1
gitea v1.14.5 is available
https://github.com/go-gitea/gitea/releases/tag/v1.14.5 is available
2021-07-19 01:28:02 +02:00
Robert Pufky
39e76e2359 Add 'latest' version to automatically download the latest gitea release.
* Versioning logic moved into separate file; versioning is determined in that
  file and appropriate facts are set.
* Removed 'gitea_dl_url' from defaults/main.yml. This is now a generated fact
  from tasks/set_version.yml.
* Remote gitea version is only checked if 'latest' is set, otherwise no logic
  change.
* 'gitea_version' used in tasks is now 'gitea_version_target'. This is the
  target install version after versioning logic is applied. No change to end
  user usage of 'gitea_version' in defaults/main.yml.
* Updated documentation with usage and removal of 'gitea_dl_url'.
2021-07-16 10:16:54 -07:00
L3D
8f040b6582
gitea v1.14.4
https://github.com/go-gitea/gitea/releases/tag/v1.14.4
2021-07-06 23:02:29 +02:00
L3D
3bb824938e
Update gitea to v1.14.3
https://github.com/go-gitea/gitea/releases/tag/v1.14.3
2021-06-20 23:03:20 +02:00
L3D
b898edfd48
allow optional public files 2021-06-03 22:51:28 +02:00
L3D
5824df7f6d
Merge pull request #38 from roles-ansible/docs
create gitea_fqdn variable
2021-06-03 21:25:06 +02:00
L3D
d640300d61
create gitea_fqdn variable 2021-06-03 21:14:42 +02:00
L3D
265bca3eeb
Add custom footer support 2021-06-03 21:06:04 +02:00
L3D
e27ef27706
implement custom logos 2021-06-03 17:59:14 +02:00
L3D
fecabe2a73
gitea 1.14.2 is available
https://github.com/go-gitea/gitea/releases/tag/v1.14.2
2021-05-10 19:16:03 +02:00
L3D
b173721bcd
gitea v1.14.1 available
https://github.com/go-gitea/gitea/releases/tag/v1.14.1
2021-04-16 15:09:48 +02:00
L3D
aadbf4c805
New gitea version 1.14.0
https://github.com/go-gitea/gitea/releases/tag/v1.14.0
2021-04-11 15:14:26 +02:00
L3D
967ee18c6f
Gitea Update to 1.13.7
https://github.com/go-gitea/gitea/releases/tag/v1.13.7
2021-04-07 19:01:53 +02:00
L3D
8fccc8a179
Update main.yml 2021-04-07 18:44:22 +02:00
L3D
c6b70f22d4
change gitea key server
based on https://docs.gitea.io/en-us/install-from-binary/ gitea is recomending keys.openpgp.org as key server.

Thanks to @DC7IA for noticing it!
2021-04-07 18:02:13 +02:00
L3D
f8fc1a8fe3
New Gitea Release 1.13.6
https://github.com/go-gitea/gitea/releases/tag/v1.13.6
2021-03-23 22:06:58 +01:00
L3D
6f4b740a43
new gitea version 2021-03-22 03:05:17 +01:00
L3D
8e1735117d
Merge pull request #9 from roles-ansible/v
add optional versionscheck
2021-03-22 02:26:10 +01:00
L3D
791ae23361
add optional versionscheck
a simple version check that can prevent you from accidentally running an older version of this role.
2021-03-22 02:22:22 +01:00
L3D
ff2cfb1edc
improve default privacy rules 2021-03-22 02:16:11 +01:00
L3D
42f6a4e594
cleanup README 2021-03-22 00:35:16 +01:00
L3D
7d8ff11f5e
reorder metrics and oauth2 variables 2021-03-22 00:17:13 +01:00
L3D
889c3ac713
reorder logging variables 2021-03-22 00:06:53 +01:00
L3D
9f867af9ca
reorder Issue and pull request attachments variables 2021-03-21 23:45:20 +01:00
L3D
4aa5562c49
reorder pictures variables 2021-03-21 23:34:25 +01:00
L3D
f568d8f13c
reorder session variables 2021-03-21 23:26:42 +01:00
L3D
fc7025755a
reorder mailer variables 2021-03-21 23:17:13 +01:00
L3D
9e98056b43
reorder service variables 2021-03-21 22:58:34 +01:00
L3D
ced73dde98
reorder security variables and add have I been pwned var 2021-03-21 22:45:27 +01:00
L3D
1ca44426ff
add missing variable 2021-03-21 21:06:05 +01:00
L3D
62b0bc8ef8
improve linting 2021-03-21 17:57:41 +01:00
L3D
0b23826553
reorder gitea indexer config 2021-03-21 17:56:16 +01:00
L3D
32a1532f7a
reorder gitea database config 2021-03-21 17:42:28 +01:00
L3D
1cb903924a
reorder gitea server variables 2021-03-21 17:29:04 +01:00
L3D
db9c8c4341
reorder variables based on config-cheat-sheet 2021-03-21 17:08:17 +01:00
L3D
1a8164b5ac
resolve linting error 2021-03-21 02:29:29 +01:00
L3D
6ec2f8ed04
change secret mechanism and continue with README clenaup 2021-03-21 02:22:36 +01:00
L3D
154a0ac752
Start reordering variables and gitea_auto_watch_new_repos variable 2021-03-21 02:02:15 +01:00
L3D
fb884c7263
resolve merge conflicts from https://github.com/thomas-maurice/ansible-role-gitea/pull/62 2021-03-21 00:27:27 +01:00
L3D
ab415b8027
Merge remote-tracking branch 'genofire/fix-repo-path' 2021-03-21 00:18:43 +01:00
L3D
fe43c45e1e
Merge branch 'version' 2021-03-20 23:35:02 +01:00
L3D
9333d622c5
update gitea to 1.13.4
The current release of gitea is [v1.13.4](https://github.com/go-gitea/gitea/releases/tag/v1.13.4).

The current master of this role is not able to do a version update properly. PLEASE first merge https://github.com/thomas-maurice/ansible-role-gitea/pull/81
2021-03-20 23:31:09 +01:00
L3D
2fa3f51eb4
Cleanup template (#85)
improve template and create loglevel variable
2021-03-02 09:35:13 +00:00
L3D
1127d83778
make the backup on update optional
Documentation and introduction of the variable `gitea_backup_on_upgrade: false`
2021-02-13 05:41:32 +01:00
L3D
0ffd14ccf0
create backup direcotry
create a backup folder and move the gitea backup to backup.yml
2021-02-13 05:32:27 +01:00
Finwë
56375819a7
Improve ARM Support (#74)
* Gitea user should be a system user

* Improve installation system

* Download archive instead of binary
* Add checksum validation
* Add GPG check
* Add backup process before upgrading

* Improve ARM support

* Improve support for Vault Encrypted JWT tokens

* Fix spacing in gitea configuration template

When Gitea rewrite the configuration file (e.g.: the JWT token is not
set or doesn't fit their criteria), it'll align space on a per-section
basis in the .ini file.
If the template is not properly spaced, at the next Ansible run, you'll
have an enormous diff, hidding what the real changes are.

* add proper redhat/debian deps for molecule testing

* Gitea group should be a system group

* fix linting for CI

* Update CI and meta information for up-to-date tests and distros

* molecule: fix typo for redhat packages

* fix typo

* bump gitea version to 1.13.1

* Use Ubuntu keyservers to play nicely with everyone

* Update minimum required ansible version to 2.9.8

This is required for Ubuntu Focal, which comes with systemd >= 245
The Get Facts modules doesn't work well with it before the bugfix
introduced in 2.9.8

* Replace yes by True to please the linting

* Truthy values needs to be lower-case

* bump gitea version to 1.13.2

* perform gitea dump as gitea user

* need to set become to yes

* autogenerate JWT_SECRETS (#77)

* autogenerate JWT_SECRETS

Based on https://docs.gitea.io/en-us/command-line/#generate we will now autogenerate JWT_SECRETS if they are not defined.
In my opinion a much better idea than writing a value in the default config.

The check if the variables for the secrets are now 43 characters long i took out. Gitea generates itself suitable secrets, if the user given ones do not fit.

* drop ansible.builtin. syntax

* Update file permissions for "{{ gitea_home }}" (#75)

The file permissions for {{ gitea_home }} especially in conjunction with the recurse: true flag are on closer inspection very open to all and also have a +x set on files.

This should be done better. And I have done here now.

By the way: To improve the -x on normal files in his gitea installation this shell command was useful for me
```
find . -type f -exec chmod a-x {} \+;
find . -type f -exec chmod u=rwX {} \+;
```

* Bump cryptography from 3.2 to 3.3.2 (#79)

Bumps [cryptography](https://github.com/pyca/cryptography) from 3.2 to 3.3.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.2...3.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Gitea user should be a system user

* Improve installation system

* Download archive instead of binary
* Add checksum validation
* Add GPG check
* Add backup process before upgrading

* Improve ARM support

* Fix spacing in gitea configuration template

When Gitea rewrite the configuration file (e.g.: the JWT token is not
set or doesn't fit their criteria), it'll align space on a per-section
basis in the .ini file.
If the template is not properly spaced, at the next Ansible run, you'll
have an enormous diff, hidding what the real changes are.

* add proper redhat/debian deps for molecule testing

* Gitea group should be a system group

* fix linting for CI

* Update CI and meta information for up-to-date tests and distros

* molecule: fix typo for redhat packages

* fix typo

* bump gitea version to 1.13.1

* Use Ubuntu keyservers to play nicely with everyone

* Update minimum required ansible version to 2.9.8

This is required for Ubuntu Focal, which comes with systemd >= 245
The Get Facts modules doesn't work well with it before the bugfix
introduced in 2.9.8

* Replace yes by True to please the linting

* Truthy values needs to be lower-case

* bump gitea version to 1.13.2

* perform gitea dump as gitea user

* need to set become to yes

* check-variables.yml doesn't exists anymore

Co-authored-by: L3D <l3d@c3woc.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 17:56:31 +00:00
L3D
9cd664d91f
autogenerate JWT_SECRETS (#77)
* autogenerate JWT_SECRETS

Based on https://docs.gitea.io/en-us/command-line/#generate we will now autogenerate JWT_SECRETS if they are not defined.
In my opinion a much better idea than writing a value in the default config.

The check if the variables for the secrets are now 43 characters long i took out. Gitea generates itself suitable secrets, if the user given ones do not fit.

* drop ansible.builtin. syntax
2021-02-10 19:04:13 +00:00