From 0c70ea19a91fa28cc5f97364ce1276ad5ae6f898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 22 Jan 2023 19:51:36 +0100 Subject: feat(roles/cgit): add argument specs --- roles/cgit/templates/cgitrc.j2 | 24 ++++++++++++------------ roles/cgit/templates/httpd.conf.j2 | 5 +---- 2 files changed, 13 insertions(+), 16 deletions(-) (limited to 'roles/cgit/templates') diff --git a/roles/cgit/templates/cgitrc.j2 b/roles/cgit/templates/cgitrc.j2 index 99dcc17..4c139d4 100644 --- a/roles/cgit/templates/cgitrc.j2 +++ b/roles/cgit/templates/cgitrc.j2 @@ -1,14 +1,8 @@ # managed by Ansible -# visuals -css={{ cgit__css }} -logo={{ cgit__logo }} -favicon={{ cgit__favicon }} -footer={{ cgit__footer }} - # cache -cache-root=/cache/cgit -cache-size=100 +cache-root={{ cgit_cache_dir }} +cache-size={{ cgit_cache_size }} # readme readme=:README.md @@ -31,12 +25,18 @@ robots=noindex, nofollow localtime=1 # git -clone-url={{ cgit__clone_urls | join(' ') }} +clone-url={{ cgit_clone_urls | join(' ') }} # instance id -root-title=git.{{ __global_domain_name }} -root-desc={{ cgit__root_desc }} -root-readme={{ cgit__root_readme }} +root-title={{ cgit_domain_name }} +root-desc={{ cgit_description }} +root-readme={{ cgit_readme_url }} + +# visuals +css={{ cgit_css_url }} +logo={{ cgit_logo_url }} +favicon={{ cgit_favicon_url }} +footer={{ cgit_footer_path }} # archives snapshots=tar.gz diff --git a/roles/cgit/templates/httpd.conf.j2 b/roles/cgit/templates/httpd.conf.j2 index 962016a..0220f90 100644 --- a/roles/cgit/templates/httpd.conf.j2 +++ b/roles/cgit/templates/httpd.conf.j2 @@ -1,10 +1,7 @@ # managed by Ansible server "cgit" { - listen on "{{ cgit_ip }}" port {{ cgit_port }} -{% if cgit_authenticate %} - authenticate "realm" with "/htpasswd/cgit" -{% endif %} + listen on "{{ cgit_listen_address }}" port {{ cgit_listen_port }} # cgit location "/cgit.*" { -- cgit v1.2.3