aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit/meta
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-22 19:51:36 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-04-02 11:45:09 +0200
commit0c70ea19a91fa28cc5f97364ce1276ad5ae6f898 (patch)
tree34fc0e5817a32d8ef50341c464562385428a0d5a /roles/cgit/meta
parent1cdb3d7f5aa68be5d90cfbbbc69918ac7823a8ae (diff)
downloadrules-0c70ea19a91fa28cc5f97364ce1276ad5ae6f898.tar.gz
feat(roles/cgit): add argument specs
Diffstat (limited to 'roles/cgit/meta')
-rw-r--r--roles/cgit/meta/main.yml73
1 files changed, 71 insertions, 2 deletions
diff --git a/roles/cgit/meta/main.yml b/roles/cgit/meta/main.yml
index bd45503..ddd865d 100644
--- a/roles/cgit/meta/main.yml
+++ b/roles/cgit/meta/main.yml
@@ -2,6 +2,75 @@
dependencies:
- role: git
- tags: dependency
- role: httpd_pre
- tags: dependency
+
+argument_specs:
+ main:
+ short_description: cgit main entrypoint.
+ options:
+
+ cgit_git_dir:
+ type: path
+ required: true
+ description: Git directory
+
+ cgit_chroot_dir:
+ type: path
+ required: true
+ description: Chroot directory for web service
+
+ cgit_user:
+ type: str
+ required: true
+ description: Cgit web service user
+
+ cgit_group:
+ type: str
+ required: true
+ description: Cgit web service group
+
+ cgit_domain_name:
+ type: str
+ required: true
+ description: Cgit domain name
+
+ cgit_clone_urls:
+ type: list
+ elements: str
+ requiredi: true
+ description: Available urls for cloning a repository
+
+ cgit_cache_size:
+ type: int
+ required: true
+ description: Cgit cache size
+
+ cgit_cache_dir:
+ type: path
+ required: true
+ description: Cgit cache directory
+
+ cgit_chroot_required_files:
+ type: list
+ elements: str
+ required: true
+ description: Files to be copied in cgit chroot
+
+ cgit_favicon_url:
+ type: str
+ description: Favicon url
+ cgit_logo_url:
+ type: str
+ description: Logo url
+ cgit_css_url:
+ type: str
+ description: Stylesheet url
+ cgit_description:
+ type: str
+ description: Instance description
+ cgit_readme_url:
+ type: str
+ description: Instance readme url
+ cgit_footer_path:
+ type: str
+ description: Footer path
remember that computers suck.