diff options
author | Aaron LI <aly@aaronly.me> | 2018-04-18 16:41:27 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-04-18 16:44:09 +0800 |
commit | 053cd1b7fe10f746792e0d1353fad4ad04e8ebe9 (patch) | |
tree | 93137af7af0b073383e0db5ae91cbe301f9bcdd1 /group_vars/all | |
parent | f448bcbdf07cf988ab50950df95d822f359041db (diff) | |
download | ansible-dfly-vps-053cd1b7fe10f746792e0d1353fad4ad04e8ebe9.tar.bz2 |
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 ^_^
Diffstat (limited to 'group_vars/all')
-rw-r--r-- | group_vars/all/vars.yml | 25 |
1 files changed, 25 insertions, 0 deletions
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: # |