summaryrefslogtreecommitdiffstats
path: root/roles/distgit
Commit message (Collapse)AuthorAgeFilesLines
...
* Map one way, or the other.Ralph Bean2015-12-181-4/+14
|
* Exit if genacls.sh encounters an error.Ralph Bean2015-12-181-1/+1
|
* Do it live.Ralph Bean2015-12-182-5/+0
|
* Publish the full list of git reposPatrick Uiterwijk2015-12-182-0/+9
| | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* Modify gl-conf in staging for dist-git acls.Ralph Bean2015-12-171-0/+15
|
* Make genacls.sh a template.Ralph Bean2015-12-172-1/+1
|
* Conditionalize that so I can debug in stg.Ralph Bean2015-12-171-9/+11
|
* Turn off namespacing in gitolite for the momentPierre-Yves Chibon2015-12-171-8/+9
|
* Needs some space otherwise endup in the same linePierre-Yves Chibon2015-12-171-0/+1
|
* StylePierre-Yves Chibon2015-12-171-2/+1
|
* Fix symlinking the new repo to the old locationPierre-Yves Chibon2015-12-171-4/+5
|
* Fix GIT_FOLDER for prod.Ralph Bean2015-12-171-2/+1
|
* Invert the folder/symlink status between rpms and repositoriesPierre-Yves Chibon2015-12-171-6/+6
|
* Point dist-git's cgit to the real dealPierre-Yves Chibon2015-12-171-1/+1
|
* Upon new package git creation, create symlink to old locationPierre-Yves Chibon2015-12-151-0/+4
|
* Tag as distgit and config a few more tasks in the distgit rolePierre-Yves Chibon2015-12-111-4/+10
|
* Point to /srv/git/repositories as this is both backward and forward compatiblePierre-Yves Chibon2015-12-112-4/+3
| | | | And adjust the documentation to mkbranch
* Invoke mkbranch and setup_git_package with ns/pkgname as package namePierre-Yves Chibon2015-12-111-6/+10
|
* Update pkgdb_sync_git_branches to the new pkgdb API while remaining backward ↵Pierre-Yves Chibon2015-12-111-83/+112
| | | | | | | compatible This commit also adds a TEST_ONLY global boolean useful if you want to test the script without modifying anything on the filesystem.
* Fix indentation in genacls.pkgdbPierre-Yves Chibon2015-12-111-4/+4
|
* Port genacls.pkgdb to the new pkgdb API while being backward compatible with ↵Pierre-Yves Chibon2015-12-111-85/+104
| | | | the old one
* Re-add run_once here.Kevin Fenzi2015-11-301-0/+1
|
* Might need to drop this for ansible 2.0Kevin Fenzi2015-11-211-1/+0
|
* Store the key in a variablePierre-Yves Chibon2015-11-201-3/+4
|
* Replace all restart httpd with reload httpdPatrick Uiterwijk2015-11-041-9/+9
| | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* Add httpd_read_user_content selinux boolean on distgitKevin Fenzi2015-07-211-0/+2
|
* distgit: Ensure the hardlinked sources all belong to apacheMathieu Bridon2015-07-151-0/+9
| | | | Without this, client uploads and downloads aren't working any more.
* Turn on git_system_enable_homedirs but don't ask whyPierre-Yves Chibon2015-07-151-0/+8
|
* changes for branchingDennis Gilmore2015-07-151-1/+1
| | | | Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
* distgit: Generators don't have a lengthMathieu Bridon2015-07-131-1/+1
| | | | This is fallout from the previous commit.
* distgit: Harden the hardlink script a bitMathieu Bridon2015-07-131-5/+18
| | | | | | | | | | | | | 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.
* distgit: Add a script to make the new paths in the lookaside cacheMathieu Bridon2015-07-131-0/+177
| | | | | | | | | | | | | | | | 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.
* Add the full traceback to the logsMathieu Bridon2015-06-051-0/+2
|
* distgit: Catch all errorsMathieu Bridon2015-06-051-1/+5
| | | | With this, we should never fail silently any more.
* distgit: Reuse the same code to create directoriesMathieu Bridon2015-06-051-12/+13
| | | | | | | | 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.
* distgit: Add some logs when hardlinks are madeMathieu Bridon2015-06-051-3/+5
|
* distgit: Simplify forming the fedmsg pathMathieu Bridon2015-06-051-5/+1
|
* Add some distgit tagsPierre-Yves Chibon2015-06-051-0/+20
|
* distgit: Avoid reuploadMathieu Bridon2015-06-051-21/+32
| | | | | | | | | | | | | | The script checks for the file at the new location. As a result, it will report that the file is missing if it had only been uploaded to the old location, which will prompt the client to reupload. With this change, the script will check at the new location, and if it doesn't find the file it will try checking for it at the old location as well. If the file is found at the old location, we hardlink it to the new location, and report the file is available.
* distgit: Drop unused importsMathieu Bridon2015-06-051-3/+0
|
* distgit: Pretend we're on NFSMathieu Bridon2015-06-051-0/+8
| | | | | | Staging doesn't use NFS for its lookaside cache, like Prod does. This makes SELinux happier, pretending that staging also is on NFS.
* Update upload_cgi and add cgi-nfs for pkgsPatrick Uiterwijk2015-06-055-6/+33
| | | | Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* distgit: Properly make the symlinkMathieu Bridon2015-06-041-1/+1
|
* distgit: One more case of error handlingMathieu Bridon2015-06-041-1/+1
|
* Store the new version of the selinux policy for distgitPierre-Yves Chibon2015-06-041-0/+0
|
* Require the types git_script_t and nfs_tPierre-Yves Chibon2015-06-041-0/+2
|
* Add a docstring to send_errorMathieu Bridon2015-06-041-0/+9
|
* distgit: Improve error reporting to the clientMathieu Bridon2015-06-041-14/+21
| | | | | | | | | | | | | | | | | There is a send_error method, which sends the error message back to the client. (pyrpkg in our case) Unfortunately, that method doesn't send back an error HTTP status code, which I'm assuming must be interpreted as a "200 OK" status. pyrpkg completely ignore the text sent back by the server, unless the status code is not 200, which means all those errors are silently ignored. This commit makes sure the send_error method will always return an error status ("500 Internal Server Error" by default), and moves all the error handling code to use that method, specifying their own status code if needed.
* Allow git_script_t to create link on NFSPierre-Yves Chibon2015-06-041-0/+3
|
* distgit: Don't raise, return the error to the clientMathieu Bridon2015-06-041-1/+1
| | | | | Raising only sends the error to the logs, the client thinks everything went fine.