From 053cd1b7fe10f746792e0d1353fad4ad04e8ebe9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 18 Apr 2018 16:41:27 +0800 Subject: Add git role: host git repos and share repos via cgit * Host git repositories * Share git repositories through web interface via cgit * The static resources used by cgit is also managed/deployed by a git repo ^_^ --- group_vars/all/vars.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'group_vars/all/vars.yml') diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index 442bbab..4776fe3 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -185,4 +185,29 @@ radicale: - name: tablet pass: "{{ vault_radicale_users_lulu_pass_tablet }}" +git: + user: + name: git # user & group name + id: 5001 # uid & gid + home: /home/git + shell: /usr/local/libexec/git-core/git-shell + ssh_keydir: "{{ playbook_dir }}/private/git/keys" + # Name of the directory that contains links to the public repos + public_dir: repos.public + # Sync public repos to GitHub + # NOTE: an unencrypted ssh keypair is required and been added to GitHub + github: + sync: true + user: liweitianux + api: "https://api.github.com" + url: "git@github.com" + keyname: "github.key" + keytype: ed25519 + # Export public repositories + cgit: + # Root of cgit files (config, filters, static, etc.) + root: /home/www/cgit + # Name of the git repo from which to checkout the static resources + static_repo: cgit-static.git + # vim: set ft=yaml sw=2: # -- cgit v1.2.2