diff options
author | Colin Guthrie <colin@mageia.org> | 2013-08-20 21:42:52 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-08-20 21:42:52 +0000 |
commit | d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5 (patch) | |
tree | 63c62537f31fd8a78706b1337e0f440b0c5e21d0 /deployment/mgagit/templates/group_owned_repo.gl | |
parent | 0f533467f2b813cacebcb420852b2d8045709482 (diff) | |
download | puppet-d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5.tar puppet-d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5.tar.gz puppet-d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5.tar.bz2 puppet-d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5.tar.xz puppet-d0f8559baf5bdcaab9f04aaeb2d945efdadb94e5.zip |
mgagit: Add repo templates to puppet rather than reply on packaged versions
This adds the repo template into puppet as this seems a more appropriate place
to track what is effectively configuration.
I also use this opportunity to add a repository configuration repo for 'web'
and add a new repo template for it accordingly.
Diffstat (limited to 'deployment/mgagit/templates/group_owned_repo.gl')
-rw-r--r-- | deployment/mgagit/templates/group_owned_repo.gl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deployment/mgagit/templates/group_owned_repo.gl b/deployment/mgagit/templates/group_owned_repo.gl new file mode 100644 index 00000000..0e5ae7c1 --- /dev/null +++ b/deployment/mgagit/templates/group_owned_repo.gl @@ -0,0 +1,28 @@ +[% SET maintainer = r.repos.$repo.maintainer %] +repo [% repo %] + RW master$ = [% maintainer %] + RW distro/ = [% maintainer %] + RW topic/ = [% maintainer %] + RW refs/tags/ = [% maintainer %] +[% IF r.repos.$repo.lockdown != 'yes' -%] + RW master$ = @mga-<%= @repogroup %> + RW distro/ = @mga-<%= @repogroup %> + RW topic/ = @mga-<%= @repogroup %> + RW refs/tags/ = @mga-<%= @repogroup %> +[% END -%] + RW+ user/USER/ = @all + R = @all +[% IF r.repos.$repo.noemail -%] + config hooks.mailinglist = "" +[% ELSE -%] +[% IF r.repos.$repo.mailinglist -%] + config hooks.mailinglist = "[% r.repos.$repo.mailinglist %]" +[% ELSE -%] + config hooks.mailinglist = "<%= @repoml %>-commits@ml.mageia.org" +[% END -%] +[% END -%] + config hooks.emailprefix = "[% repo %] " + config gitweb.description = "[% r.repos.$repo.description %]" +[% IF r.users.$maintainer -%] + config gitweb.owner = "[% r.users.$maintainer.cn.0 %] [[% maintainer %]]" +[% END -%] |