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

79 commits

Author SHA1 Message Date
L3D
38599ae607
andding jinja2 linter and improve template
+ update yamllint
+ update ansible-lint
+ add j2lint
+ lint j2 template
2023-10-21 02:16:13 +02:00
L3D
ec13147f2b
Merge pull request #124 from abrain/visibility-template
Fix default user and org visibility
2023-10-10 20:03:35 +02:00
L3D
dc5d8c60ee
Cleanup whitespace and change linter 2023-10-10 19:30:38 +02:00
Andreas Brain
9409bbb61a
Remove ternary filter from non-boolean variable 2023-09-15 16:01:32 +02:00
L3D
9a306158c2
cleanup variable name and values
Variable names cleanup
added ternary('true', 'false') where needed
default value for new variables now the same than the official docs
2023-08-30 01:08:02 +02:00
Lyn Matten
2912ec874f removed double parameter entries; added missing variable gitea_show_milestones_dashboard; fixed ini layout to only show valid changed when using -D 2023-08-29 09:35:35 +02:00
Lyn Matten
d08647ef84 removed with spaces to avoid unneccesary redeplyoment of variables 2023-08-29 09:01:20 +02:00
Lyn Matten
e118d2f7cb added several config options for service section 2023-08-29 08:52:06 +02:00
L3D
9d6614e7d1 Refactor setting.Other
Refactor setting.Other and remove unused SHOW_FOOTER_BRANDING as announced in https://github.com/go-gitea/gitea/releases/tag/v1.20.0
2023-07-19 10:49:22 +02:00
L3D
f3af1cdb79
Change gitea attachmet config options 2023-05-12 20:32:28 +02:00
L3D
6f07f2c5c6
Repository Upload
Adding variables to configure repository upload more easily
2023-05-12 20:19:43 +02:00
Benoit Garcia
c9c2f66c5c
chore(syntax): Reformat the configuration file. 2023-05-09 15:10:08 +02:00
Benoit Garcia
83cfd8d82e
fix(config): Fix name of the actionssection in the configuration file. 2023-05-09 15:10:01 +02:00
L3D
3f4f8f52ac
adding gitea_actions_extra variable
+ Added the variable ``gitea_actions_extra``
+ Increased the Number for the simplified versions check
2023-05-09 01:43:05 +02:00
Benoit Garcia
8f06e948fb
feat(actions): Add actions related elements to the configuration template. 2023-05-08 07:27:56 +02:00
Stefan Ubbink
76ac0a3453 Fix DISABLE_WEBHOOKS value in the template 2023-02-08 20:26:21 +01:00
L3D
47c3dedd1e
Update template layout and increase version 2023-01-26 03:42:19 +01:00
L3D
672f7c906e
configutre lfs and other options 2023-01-26 02:53:50 +01:00
L3D
93da14fc2a
Add option for federation feature 2023-01-26 02:17:53 +01:00
L3D
b81a2d8dff
BREAKING Mail variables updated
Updated variables for sending mail. This changed between gitea 1.17 and 1.18.
2023-01-26 01:57:07 +01:00
L3D
bab3431724
update issue indexing 2023-01-26 01:18:15 +01:00
L3D
a1c047b341
CHANGING - update acme variables
updated server variables and most important replaced letsencrypt with acme.
2023-01-26 01:01:54 +01:00
L3D
fe1a26cd9e
update config
Update config, add ui.meta and cors options and update ui vars
2023-01-25 23:55:35 +01:00
L3D
2f6f3496a7
Expand Gitea Repo config options
+ Sort Options Alphabetically in Repo section
+ Added ``gitea_enable_push_create_user`` option *(Allow users to push local repositories to Gitea and have them automatically created for a user.)*
+ Added ``gitea_enable_push_create_org`` option *(Allow users to push local repositories to Gitea and have them automatically created for an org.)*
+ Added ``gitea_disabled_repo_units`` Option
+ Added ``gitea_default_repo_units`` Option
+ Added ``gitea_disable_stars`` Option
+ Added Options for signing repos together with the `gitea_enable_repo_signing`_options variable.
2023-01-24 21:41:02 +01:00
JoFo
d136df1bac
Add DEFAULT_PRIVATE
Fix: DEFAULT_PRIVATE #49 --> https://github.com/roles-ansible/ansible_role_gitea/issues/49#issue-952155695
2021-07-25 00:25:12 +02:00
L3D
43e8682148
improving [repository] and [repository.upload] section
add gitea_repository_upload_extra_config  variable
2021-07-19 15:17:50 +02:00
L3D
9509321a37
Merge pull request #34 from abrain/patch-2
Set explicit default repository upload temp path
2021-06-01 20:06:22 +02:00
Andreas Brain
4b9ffee035
Set explicit default repository upload temp path 2021-06-01 18:34:56 +02:00
Andreas Brain
8a3fdf20ce
Quote mailer password
Quoting allows for special characters, see https://docs.gitea.io/en-us/email-setup/
2021-06-01 17:28:56 +02:00
L3D
a16f860c77
Update gitea.ini.j2 2021-04-12 00:52:27 +02:00
L3D
3a4b68fed7
add ternary to more boolean options 2021-04-12 00:49:03 +02:00
L3D
ff2cfb1edc
improve default privacy rules 2021-03-22 02:16:11 +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
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
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
2fa3f51eb4
Cleanup template (#85)
improve template and create loglevel variable
2021-03-02 09:35:13 +00:00
Maxim Burgerhout
183e58f0e5
Add / correct accepted SSL modes for PostgreSQL (#83)
Supported SSL modues for PostgreSQL are: disabled, require, verify-ca
and verify-full.

This fix adds `verify-ca` to README.md and gitea.ini.j2, and corrects
`require` to `required` in README.md.
2021-02-15 18:35:27 +00: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
cde4a964d5 add LFS_JWT_SECRET option
+ Add comments about git-lfs to the README.
+ New variable for LFS_JWT_SECRET.
+ absolute path for gitea_lfs_content_path.
+ maybe some help to resolve https://github.com/thomas-maurice/ansible-role-gitea/issues/70
2021-01-22 11:07:28 +00:00