Advertisement
GarbageYard

.gitolite.rc

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