Commit graph

216 commits

Author SHA1 Message Date
Ralph Bean
7ae1df78b3 A regex that doesn't rely on '.git'. 2016-01-05 21:53:35 +00:00
Ralph Bean
cc0089049f Redirect old cgit repo urls to the new namespace. 2016-01-05 21:31:14 +00:00
Ralph Bean
19b7d1c701 Flip pkgs/dist-git over to use the gitolite Alias feature. 2016-01-04 16:29:40 +00:00
Kevin Fenzi
d7978f9eec Fix duplicate entries in cgit due to namespace changes. 2016-01-02 17:25:15 +00:00
Ralph Bean
39226522ce Use the correct copy of gitolite.conf. 2015-12-22 18:27:17 +00:00
Ralph Bean
cc985b5531 Fix one conditional. 2015-12-22 18:14:51 +00:00
Ralph Bean
b581e4a6f9 Use the gitolite Alias feature in staging. 2015-12-22 17:37:06 +00:00
Ralph Bean
a9f1d0ca6f Don't do the magic dist-git map in staging. Work towards phasing it out. 2015-12-22 17:19:42 +00:00
Ralph Bean
a57d418bfb Make gitolite.rc a template. 2015-12-22 16:49:28 +00:00
Pierre-Yves Chibon
5b6ce80a6b Move rpms to repositories on all scripts 2015-12-21 11:22:25 +01:00
Ralph Bean
1392043bbd Switch the order of our two big pkgdb calls to resolve a race condition. 2015-12-18 16:22:10 +00:00
Pierre-Yves Chibon
d29eec75ab Only symlink if there isn't already one 2015-12-18 17:13:58 +01:00
Ralph Bean
76cc69c4a9 Map one way, or the other. 2015-12-18 16:01:47 +00:00
Ralph Bean
b8b5536e05 Exit if genacls.sh encounters an error. 2015-12-18 15:22:36 +00:00
Ralph Bean
45724ecd35 Do it live. 2015-12-18 14:30:43 +00:00
Patrick Uiterwijk
4ec8ff4264 Publish the full list of git repos
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-12-18 00:50:29 +00:00
Ralph Bean
0a5ca36a62 Modify gl-conf in staging for dist-git acls. 2015-12-17 21:57:13 +00:00
Ralph Bean
2bca286974 Make genacls.sh a template. 2015-12-17 21:54:17 +00:00
Ralph Bean
0e2ee11f58 Conditionalize that so I can debug in stg. 2015-12-17 17:32:13 +00:00
Pierre-Yves Chibon
6750a233fd Turn off namespacing in gitolite for the moment 2015-12-17 18:21:25 +01:00
Pierre-Yves Chibon
d0639e74d2 Needs some space otherwise endup in the same line 2015-12-17 17:46:54 +01:00
Pierre-Yves Chibon
8a58b9049a Style 2015-12-17 17:45:31 +01:00
Pierre-Yves Chibon
1dff3ce655 Fix symlinking the new repo to the old location 2015-12-17 17:44:57 +01:00
Ralph Bean
26141bb5e0 Fix GIT_FOLDER for prod. 2015-12-17 16:37:09 +00:00
Pierre-Yves Chibon
16fb8ba80a Invert the folder/symlink status between rpms and repositories 2015-12-17 16:38:43 +01:00
Pierre-Yves Chibon
9908aa99fe Point dist-git's cgit to the real deal 2015-12-17 16:36:15 +01:00
Pierre-Yves Chibon
f7fa7a6822 Upon new package git creation, create symlink to old location 2015-12-15 17:20:54 +01:00
Pierre-Yves Chibon
ec89cc5e83 Tag as distgit and config a few more tasks in the distgit role 2015-12-11 13:49:27 +01:00
Pierre-Yves Chibon
e5fa3f7374 Point to /srv/git/repositories as this is both backward and forward compatible
And adjust the documentation to mkbranch
2015-12-11 13:44:18 +01:00
Pierre-Yves Chibon
705d5df833 Invoke mkbranch and setup_git_package with ns/pkgname as package name 2015-12-11 13:43:52 +01:00
Pierre-Yves Chibon
382d837d7a Update pkgdb_sync_git_branches to the new pkgdb API while remaining backward compatible
This commit also adds a TEST_ONLY global boolean useful if you want to
test the script without modifying anything on the filesystem.
2015-12-11 13:35:19 +01:00
Pierre-Yves Chibon
d4307d396e Fix indentation in genacls.pkgdb 2015-12-11 12:30:49 +01:00
Pierre-Yves Chibon
32f824900c Port genacls.pkgdb to the new pkgdb API while being backward compatible with the old one 2015-12-11 12:17:35 +01:00
Kevin Fenzi
87a5d3b374 Re-add run_once here. 2015-11-30 20:16:21 +00:00
Kevin Fenzi
7bc33f64f2 Might need to drop this for ansible 2.0 2015-11-21 18:12:36 +00:00
Pierre-Yves Chibon
c8d7b8485b Store the key in a variable 2015-11-20 17:29:32 +01:00
Patrick Uiterwijk
08568865fe Replace all restart httpd with reload httpd
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-11-04 23:40:01 +00:00
Kevin Fenzi
1caa9a2ef8 Add httpd_read_user_content selinux boolean on distgit 2015-07-21 23:44:31 +00:00
Mathieu Bridon
af02e32085 distgit: Ensure the hardlinked sources all belong to apache
Without this, client uploads and downloads aren't working any more.
2015-07-15 17:20:35 +02:00
Pierre-Yves Chibon
24d6ca29a8 Turn on git_system_enable_homedirs but don't ask why 2015-07-15 11:38:22 +02:00
5c0a086356 changes for branching
Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
2015-07-15 06:35:24 +00:00
Mathieu Bridon
3ff24f67b2 distgit: Generators don't have a length
This is fallout from the previous commit.
2015-07-13 23:03:44 +02:00
Mathieu Bridon
a11c53cb4d distgit: Harden the hardlink script a bit
Turns out the lookaside cache is not as clean as I expected.

Specifically, it contains some files where we'd expect directories, for
example:

/srv/cache/lookaside/pkgs/GFS-kernel/@13013.1e77f453ba1c86cd7616087d0643bbd8e
/srv/cache/lookaside/pkgs/openswan/tmpLRV5Gn5556cb2fcea6ba862ce14e1debf98b6d

This commit makes the script print an error instead of crashing on an
OSError in such a case.
2015-07-13 22:55:57 +02:00
Mathieu Bridon
e7074e8ad9 distgit: Add a script to make the new paths in the lookaside cache
We are migrating from the following path scheme:
    /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s

To:
    /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

As a result, we need to hardlink all the files existing under the old
path to their new path.

This script does just that.

Given that it should only ever be run once anyway, it is added as a
file to the distgit role, but not set to be installed anywhere.
2015-07-13 20:16:30 +00:00
Mathieu Bridon
6ea2c97f74 Add the full traceback to the logs 2015-06-05 18:33:13 +02:00
Mathieu Bridon
c474289e3b distgit: Catch all errors
With this, we should never fail silently any more.
2015-06-05 18:19:05 +02:00
Mathieu Bridon
635611cfb7 distgit: Reuse the same code to create directories
This avoids some race conditions, as testing for a directory existence
before creating it is racy.

The best way is to try creating it no matter what, and ignore errors
when the directory already exists.
2015-06-05 18:19:01 +02:00
Mathieu Bridon
8ecd6b0fd0 distgit: Add some logs when hardlinks are made 2015-06-05 18:18:32 +02:00
Mathieu Bridon
bd10dee3c1 distgit: Simplify forming the fedmsg path 2015-06-05 18:17:35 +02:00
Pierre-Yves Chibon
f12571f531 Add some distgit tags 2015-06-05 18:13:00 +02:00