From d9897294a2618e4c4991c4fc1a91e43bb9d2d7cc Mon Sep 17 00:00:00 2001 From: db Date: Fri, 15 May 2015 23:53:47 -0300 Subject: update package name to gitolite3 --- manifests/gitolite.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/gitolite.pp b/manifests/gitolite.pp index 19474df..62b5d83 100644 --- a/manifests/gitolite.pp +++ b/manifests/gitolite.pp @@ -28,7 +28,7 @@ class gitolite inherits git { } # the needed packages - package { "gitolite": ensure => installed } + package { "gitolite3": ensure => installed } # make sure this is not installed package { "gitosis": ensure => purged } @@ -37,7 +37,7 @@ class gitolite inherits git { group { "gitolite": ensure => present, allowdupe => false, - require => Package["gitolite"], + require => Package["gitolite3"], } # alters the user's home dir -- cgit v1.2.3 From 72d33673fa671482cb34a091fc01c4c9ead61e2b Mon Sep 17 00:00:00 2001 From: db Date: Sat, 16 May 2015 01:55:23 -0300 Subject: add jessie gitolite conf --- files/gitolite.rc.jessie | 195 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 files/gitolite.rc.jessie diff --git a/files/gitolite.rc.jessie b/files/gitolite.rc.jessie new file mode 100644 index 0000000..6ecc03a --- /dev/null +++ b/files/gitolite.rc.jessie @@ -0,0 +1,195 @@ +# configuration variables for gitolite + +# This file is in perl syntax. But you do NOT need to know perl to edit it -- +# just mind the commas, use single quotes unless you know what you're doing, +# and make sure the brackets and braces stay matched up! + +# (Tip: perl allows a comma after the last item in a list also!) + +# HELP for commands can be had by running the command with "-h". + +# HELP for all the other FEATURES can be found in the documentation (look for +# "list of non-core programs shipped with gitolite" in the master index) or +# directly in the corresponding source file. + +%RC = ( + + # ------------------------------------------------------------------ + + # default umask gives you perms of '0700'; see the rc file docs for + # how/why you might change this + UMASK => 0077, + + # look for "git-config" in the documentation + GIT_CONFIG_KEYS => '', + + # comment out if you don't need all the extra detail in the logfile + LOG_EXTRA => 1, + # syslog options + # 1. leave this section as is for normal gitolite logging + # 2. uncomment this line to log only to syslog: + # LOG_DEST => 'syslog', + # 3. uncomment this line to log to syslog and the normal gitolite log: + # LOG_DEST => 'syslog,normal', + + # roles. add more roles (like MANAGER, TESTER, ...) here. + # WARNING: if you make changes to this hash, you MUST run 'gitolite + # compile' afterward, and possibly also 'gitolite trigger POST_COMPILE' + ROLES => { + READERS => 1, + WRITERS => 1, + }, + + # enable caching (currently only Redis). PLEASE RTFM BEFORE USING!!! + # CACHE => 'Redis', + + # ------------------------------------------------------------------ + + # rc variables used by various features + + # the 'info' command prints this as additional info, if it is set + # SITE_INFO => 'Please see http://blahblah/gitolite for more help', + + # the CpuTime feature uses these + # display user, system, and elapsed times to user after each git operation + # DISPLAY_CPU_TIME => 1, + # display a warning if total CPU times (u, s, cu, cs) crosses this limit + # CPU_TIME_WARN_LIMIT => 0.1, + + # the Mirroring feature needs this + # HOSTNAME => "foo", + + # TTL for redis cache; PLEASE SEE DOCUMENTATION BEFORE UNCOMMENTING! + # CACHE_TTL => 600, + + # ------------------------------------------------------------------ + + # suggested locations for site-local gitolite code (see cust.html) + + # this one is managed directly on the server + # LOCAL_CODE => "$ENV{HOME}/local", + + # or you can use this, which lets you put everything in a subdirectory + # called "local" in your gitolite-admin repo. For a SECURITY WARNING + # on this, see http://gitolite.com/gitolite/cust.html#pushcode + # LOCAL_CODE => "$rc{GL_ADMIN_BASE}/local", + + # ------------------------------------------------------------------ + + # List of commands and features to enable + + ENABLE => [ + + # COMMANDS + + # These are the commands enabled by default + 'help', + 'desc', + 'info', + 'perms', + 'writable', + + # Uncomment or add new commands here. + # 'create', + # 'fork', + # 'mirror', + # 'readme', + # 'sskm', + # 'D', + + # These FEATURES are enabled by default. + + # essential (unless you're using smart-http mode) + 'ssh-authkeys', + + # creates git-config enties from gitolite.conf file entries like 'config foo.bar = baz' + 'git-config', + + # creates git-daemon-export-ok files; if you don't use git-daemon, comment this out + 'daemon', + + # creates projects.list file; if you don't use gitweb, comment this out + 'gitweb', + + # These FEATURES are disabled by default; uncomment to enable. If you + # need to add new ones, ask on the mailing list :-) + + # user-visible behaviour + + # prevent wild repos auto-create on fetch/clone + # 'no-create-on-read', + # no auto-create at all (don't forget to enable the 'create' command!) + # 'no-auto-create', + + # access a repo by another (possibly legacy) name + # 'Alias', + + # give some users direct shell access. See documentation in + # sts.html for details on the following two choices. + # "Shell $ENV{HOME}/.gitolite.shell-users", + # 'Shell alice bob', + + # set default roles from lines like 'option default.roles-1 = ...', etc. + # 'set-default-roles', + + # show more detailed messages on deny + # 'expand-deny-messages', + + # show a message of the day + # 'Motd', + + # system admin stuff + + # enable mirroring (don't forget to set the HOSTNAME too!) + # 'Mirroring', + + # allow people to submit pub files with more than one key in them + # 'ssh-authkeys-split', + + # selective read control hack + # 'partial-copy', + + # manage local, gitolite-controlled, copies of read-only upstream repos + # 'upstream', + + # updates 'description' file instead of 'gitweb.description' config item + # 'cgit', + + # allow repo-specific hooks to be added + # 'repo-specific-hooks', + + # performance, logging, monitoring... + + # be nice + # 'renice 10', + + # log CPU times (user, system, cumulative user, cumulative system) + # 'CpuTime', + + # syntactic_sugar for gitolite.conf and included files + + # allow backslash-escaped continuation lines in gitolite.conf + # 'continuation-lines', + + # create implicit user groups from directory names in keydir/ + # 'keysubdirs-as-groups', + + # allow simple line-oriented macros + # 'macros', + + # Kindergarten mode + + # disallow various things that sensible people shouldn't be doing anyway + # 'Kindergarten', + ], + +); + +# ------------------------------------------------------------------------------ +# per perl rules, this should be the last line in such a file: +1; + +# Local variables: +# mode: perl +# End: +# vim: set syn=perl: -- cgit v1.2.3 From 76745776317ba0ad03563fc238ba258841d719ad Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 5 Jun 2015 15:47:14 -0300 Subject: change gitolite module name --- manifests/daemon.pp | 2 +- manifests/gitolite.pp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 546aae9..9a63d39 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -13,7 +13,7 @@ class git::daemon ( include gitosis } default: { - include gitolite + include git::gitolite } } diff --git a/manifests/gitolite.pp b/manifests/gitolite.pp index 62b5d83..e4e33d7 100644 --- a/manifests/gitolite.pp +++ b/manifests/gitolite.pp @@ -1,7 +1,7 @@ # This class handles a gitolite installation, with /var/git as the root for # git repositories. -class gitolite inherits git { +class git::gitolite inherits git { # directory for gitolite user and repositories file { "/var/git": ensure => directory, -- cgit v1.2.3 From 291638bbc9ff0fba3c018fa23f6e19aeb675bd7d Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 9 Jun 2015 14:40:05 -0300 Subject: update gitweb class name to git::gitweb --- manifests/gitweb.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index 4399592..3453169 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -1,6 +1,6 @@ # This class handles a gitweb installation. -class gitweb( +class git::gitweb( $protocol = hiera('git::web::protocol', 'git'), $hosting_domain = hiera('apache::site::domain', $::domain), $implementation = hiera('git::daemon::implementation', 'gitolite') -- cgit v1.2.3