]> git.somenet.org - root/pub/somesible.git/blob - roles/server/git-server/files/default/gitolite.rc
[roles/server/git-server] install gitolite3
[root/pub/somesible.git] / roles / server / git-server / files / default / gitolite.rc
1 #
2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2024 by someone <someone@somenet.org>
7 #
8
9 # configuration variables for gitolite
10
11 # This file is in perl syntax.  But you do NOT need to know perl to edit it --
12 # just mind the commas, use single quotes unless you know what you're doing,
13 # and make sure the brackets and braces stay matched up!
14
15 # (Tip: perl allows a comma after the last item in a list also!)
16
17 # HELP for commands (see COMMANDS list below) can be had by running the
18 # command with "-h" as the sole argument.
19
20 # HELP for all the other external programs (the syntactic sugar helpers and
21 # the various programs/functions in the 8 trigger lists), can be found in
22 # doc/non-core.mkd (http://sitaramc.github.com/gitolite/non-core.html) or in
23 # the corresponding source file itself.
24
25 %RC = (
26     # if you're using mirroring, you need a hostname.  This is *one* simple
27     # word, not a full domain name.  See documentation if in doubt
28     # HOSTNAME                  =>  'darkstar',
29     UMASK                       =>  0027,
30
31     # look in the "GIT-CONFIG" section in the README for what to do
32     GIT_CONFIG_KEYS             =>  'gitweb\.(owner|description)',
33
34     # comment out if you don't need all the extra detail in the logfile
35     # LOG_EXTRA                   =>  1,
36
37     # settings used by external programs; uncomment and change as needed.  You
38     # can add your own variables for use in your own external programs; take a
39     # look at the info and desc commands for perl and shell samples.
40     LOCAL_CODE                  =>  "$ENV{HOME}/.gitolite/local-code",
41
42     # used by the CpuTime trigger
43     # DISPLAY_CPU_TIME          =>  1,
44     # CPU_TIME_WARN_LIMIT       =>  0.1,
45     # used by the desc command
46     # WRITER_CAN_UPDATE_DESC    =>  1,
47     # used by the info command
48     # SITE_INFO                 =>  'dein GITOLITE.RC: SITE_INFO. Please see http://blahblah/gitolite for more help',
49
50     # add more roles (like MANAGER, TESTER, ...) here.
51     #   WARNING: if you make changes to this hash, you MUST run 'gitolite
52     #   compile' afterward, and possibly also 'gitolite trigger POST_COMPILE'
53     ROLES                       =>
54         {
55             READERS             =>  1,
56             WRITERS             =>  1,
57             MANAGER             =>  1,
58         },
59     # uncomment (and change) this if you wish
60     # DEFAULT_ROLE_PERMS          =>  'READERS @all',
61
62     # comment out or uncomment as needed
63     # these are available to remote users
64     COMMANDS                    =>
65         {
66             'help'              =>  1,
67             'desc'              =>  1,
68             # 'fork'            =>  1,
69             'info'              =>  1,
70             # 'mirror'          =>  1,
71             'perms'             =>  1,
72             # 'sskm'            =>  1,
73             'writable'          =>  1,
74             'D'                 =>  1,
75         },
76
77     # comment out or uncomment as needed
78     # these will run in sequence during the conf file parse
79     SYNTACTIC_SUGAR             =>
80         [
81             # 'continuation-lines',
82             # 'keysubdirs-as-groups',
83         ],
84
85     # comment out or uncomment as needed
86     # these will run in sequence to modify the input (arguments and environment)
87     INPUT                       =>
88         [
89             'CpuTime::input',
90             # 'Shell::input',
91             # 'Alias::input',
92             # 'Mirroring::input',
93         ],
94
95     # comment out or uncomment as needed
96     # these will run in sequence just after the first access check is done
97     ACCESS_1                    =>
98         [
99         ],
100
101     # comment out or uncomment as needed
102     # these will run in sequence just before the actual git command is invoked
103     PRE_GIT                     =>
104         [
105             'renice 5',
106             'pre-git-log-access',
107             # 'Mirroring::pre_git',
108             # 'partial-copy',
109         ],
110
111     # comment out or uncomment as needed
112     # these will run in sequence just after the second access check is done
113     ACCESS_2                    =>
114         [
115         ],
116
117     # comment out or uncomment as needed
118     # these will run in sequence after the git command returns
119     POST_GIT                    =>
120         [
121             # 'Mirroring::post_git',
122             'post-push',
123             'CpuTime::post_git',
124         ],
125
126     # comment out or uncomment as needed
127     # these will run in sequence before a new wild repo is created
128     PRE_CREATE                  =>
129         [
130             'pre-create-init-repo',
131         ],
132
133     # comment out or uncomment as needed
134     # these will run in sequence after a new repo is created
135     POST_CREATE                 =>
136         [
137             'post-create-init-repo',
138             'post-compile/update-git-configs',
139             'post-compile/update-gitweb-access-list',
140             'post-compile/update-git-daemon-access-list',
141         ],
142
143     # comment out or uncomment as needed
144     # these will run in sequence after post-update
145     POST_COMPILE                =>
146         [
147             'post-compile/ssh-authkeys',
148             'post-compile/update-git-configs',
149             'post-compile/update-gitweb-access-list',
150             'post-compile/update-git-daemon-access-list',
151         ],
152 );
153
154 # ------------------------------------------------------------------------------
155 # per perl rules, this should be the last line in such a file:
156 1;
157
158 # Local variables:
159 # mode: perl
160 # End:
161 # vim: set syn=perl: