Commit Graph

80 Commits

Author SHA1 Message Date
Mathieu Bridon
4602628727 Add the gen-acls user to the packager group
This is required to run gitolite compile properly.
2015-01-22 19:49:15 +01:00
Pierre-Yves Chibon
7a2f626fc9 Specify otherwise the groups with shell access 2015-01-22 18:06:52 +01:00
Pierre-Yves Chibon
8521f61cf8 Some join logic to fix the call to users-from-fas 2015-01-22 18:05:06 +01:00
Pierre-Yves Chibon
2ef9c6cc60 Adjust the list of person having shell access 2015-01-22 18:03:46 +01:00
Pierre-Yves Chibon
0912a7c2a5 Indicate where we list the pkgs admins 2015-01-22 17:59:09 +01:00
Pierre-Yves Chibon
273bdee55a No comas it said 2015-01-22 17:53:10 +01:00
Pierre-Yves Chibon
4b430db9bb Run the script once and locally - Thansk Toshio 2015-01-22 17:51:15 +01:00
Pierre-Yves Chibon
1eb813ae53 Try specifying it is a python script 2015-01-22 17:08:33 +01:00
Pierre-Yves Chibon
2f3cd0f177 Oupsy forgot the template 2015-01-22 17:01:14 +01:00
Pierre-Yves Chibon
a846a04f7b Try getting the list in 2 steps - Thank Toshio 2015-01-22 17:00:17 +01:00
Pierre-Yves Chibon
d7df8b7738 Another approach using lineinfile 2015-01-22 16:42:31 +01:00
Pierre-Yves Chibon
5cad48a1b7 Add a state for the file 2015-01-22 16:33:16 +01:00
Pierre-Yves Chibon
c5f1823b70 Try with file instead of assemble 2015-01-22 16:31:06 +01:00
Pierre-Yves Chibon
b7851f4b49 Try using the users-from-fas script to list users having a shell access 2015-01-22 16:19:47 +01:00
Pierre-Yves Chibon
1fbbefe117 Drop fixing the perms on /etc/gitolite/hook 2015-01-22 16:19:47 +01:00
Pierre-Yves Chibon
797c5434a3 Adjust genacls.pkgdb to mention running our hook 2015-01-22 15:40:15 +01:00
Pierre-Yves Chibon
3aa0d39237 Create the local folder for gitolite3 and put it our hook 2015-01-22 15:40:15 +01:00
Pierre-Yves Chibon
40536895b3 No need to install our hook ourself anymore 2015-01-22 15:40:15 +01:00
Pierre-Yves Chibon
94578dfddd Activate the site-local gitolite code 2015-01-22 15:40:15 +01:00
Pierre-Yves Chibon
e8d65d80ec Fix the permission and ownership on the gitolite hooks 2015-01-22 12:33:26 +01:00
Pierre-Yves Chibon
8cdc6d9b3c Adjust the path to /src/git/rpms to avoid searching twice in rpms and in repositories 2015-01-21 11:42:11 +01:00
Pierre-Yves Chibon
6893cbd335 Fix check-update-hooks cron to find the git repos properly 2015-01-21 11:10:42 +01:00
Pierre-Yves Chibon
a0f3bc7aad Fix path to the gitolite update hook 2015-01-21 11:01:03 +01:00
Pierre-Yves Chibon
86589714ab Let the gen-acls user compile the configuration file 2015-01-20 19:27:45 +01:00
Pierre-Yves Chibon
ee7c1e4de9 Adjust the $HOME of the gen-acls user 2015-01-20 19:27:45 +01:00
Pierre-Yves Chibon
fd8e6033bc Drop the -s/--source branch argument in mkbranch
In the process of automating the git branch creation based on fedmsg
message we can no longer rely on passing a -s/--source branch argument
to the mkbranch script.
As decided in https://fedorahosted.org/rel-eng/ticket/5931 the branches
will be created with the first commit of the master branch.

This commit thus drops the use of -s/--source and SRC_BRANCH in favor of
creating the branch with the first commit of the master branch:
git branch --no-track $BRANCH `git rev-list --max-parents=0 master`
2015-01-13 13:23:31 +01:00
Pierre-Yves Chibon
8de1473156 Replace tab with spaces 2015-01-13 13:23:31 +01:00
Till Maas
a87f2b4325 Remove process-git-requests from distgit role
The script is maintained in rel-eng repo. The version here is outdated.
2015-01-12 22:34:13 +01:00
Kevin Fenzi
fe29fed6b0 Another cron fix 2015-01-10 02:36:27 +00:00
Pierre-Yves Chibon
441c1455da Do not install nor configure the email-libravatar script while the package isn't in epel7 2014-12-16 19:06:33 +01:00
Mathieu Bridon
08d6bc634f distgit: Update the gitolite.rc file to Gitolite3 2014-12-15 17:46:19 +00:00
Mathieu Bridon
1b2337558f lookaside: Add the hash type to the folder structure
This makes it more explicit which hash was used for a given tarball.

https://fedorahosted.org/rel-eng/ticket/5846
2014-10-28 10:59:01 +01:00
Mathieu Bridon
a92efe252a lookaside: Add support for sha512 file hashes
With this change, the upload CGI script will start preferring uploads
hashed as sha512, but still accept md5 as a fallback.

The message emitted on fedmsg is unchanged, because doing so would break
it. We're going to fix that later though.

https://fedorahosted.org/rel-eng/ticket/5846
2014-10-28 10:59:01 +01:00
Mathieu Bridon
608810be28 lookaside: De-hardcode md5 assumptions...
... as much as possible.

The point of this patch is to make it easier to move away from md5 in a
subsequent patch, without having one monster change which would be
impossible to review.

Some md5 stuff remains hardcoded, because changing it at this point
would break compatibility.

https://fedorahosted.org/rel-eng/ticket/5846
2014-10-28 10:59:01 +01:00
Mathieu Bridon
b842616187 lookaside: Drop EL < 6 support
This will make it easier to move away from md5 for the source tarballs.

It shouldn't cause any problem anyway, as Fedora runs this on EL 6 in
production, and EL 7 in staging.
2014-10-28 10:16:30 +01:00
Mathieu Bridon
76d83b13a0 lookaside: Remove tempfile when hash verification fails
Without this, tempfiles just accumulate.
2014-10-28 10:16:30 +01:00
Mathieu Bridon
9bad15971c distgit: Schedule a weekly check of the update hooks
This allows ensuring over time that all repositories have the right
update hooks set up.
2014-10-27 10:48:12 +01:00
Mathieu Bridon
7ab3ff2817 distgit: Block push of branches named 'origin/*'
We already use the update hook for gitolite.

This introduces a new update hook, which merely chains the gitolite one,
and a new one to block pushes to badly named branches.

The new hook was written originally by Till Maas.

https://fedorahosted.org/rel-eng/ticket/4071
2014-10-27 10:48:12 +01:00
Mathieu Bridon
e47ca86ca3 distgit: One action per task
This had been found by misc during his review of the patches, but the
unfixed patch is what got merged.

https://fedorahosted.org/fedora-infrastructure/ticket/4452
2014-09-24 12:26:08 +02:00
Mathieu Bridon
4155edeeaf distgit: Express the role dependency properly
This had been found by misc during his review of the patches, but the
unfixed patch is what got merged.

https://fedorahosted.org/fedora-infrastructure/ticket/4452
2014-09-24 12:26:07 +02:00
Mathieu Bridon
d46dc1095c Setup for F21 branching
This change had been made by Dennis Gilmore in puppet (commit 8dc43c),
I'm just porting it here to Ansible so we don't miss it.
2014-09-24 12:26:07 +02:00
Mathieu Bridon
5dd40fdfbf Add support for packaging groups
This had already been done by Pierre-Yves Chibon in puppet (commits
4cc2ef and 47f29f), I'm just porting it here in Ansible so we don't miss
it.
2014-09-24 12:26:07 +02:00
Pierre-Yves Chibon
13465f6a0d Try fixing indentation 2014-09-10 12:08:45 +02:00
Pierre-Yves Chibon
a5254ba79b Fix the permissions on /etc/gitolite/logs 2014-09-10 11:58:54 +02:00
Pierre-Yves Chibon
0d2ca2d93d Print the error message if there is one 2014-09-09 12:02:44 +02:00
Pierre-Yves Chibon
b9dbd0b681 Accesss stdout in VERBOSE we do not need it otherwise 2014-09-09 12:02:44 +02:00
Pierre-Yves Chibon
068d71c127 Fix installing the genacls.pkgdb script from the template directory 2014-09-09 10:58:36 +02:00
Pierre-Yves Chibon
3341c84d01 Let genacls.pkgdb use the pkgdb.stg instance in stg 2014-09-09 10:56:41 +02:00
Pierre-Yves Chibon
0d41c13df1 Move the genacls.pkgdb script to the template directory 2014-09-09 10:55:12 +02:00
Pierre-Yves Chibon
6d942022c1 Give the logs folder to packager and let them write to it 2014-09-09 10:49:25 +02:00