Commit Graph

85 Commits

Author SHA1 Message Date
clime
3dc7d772c9 copr: prepare deploy of new dist-git upstream package to copr-dist-git-dev 2017-02-13 20:59:28 +01:00
clime
197b291809 copr-dist-git; create users and groups beforehand with predefined uids and gids
...so that we don't need to chown huge amount of files after deploy
2017-01-21 12:11:59 +01:00
clime
1354d0201c copr-dist-git: move non-critical long-running tasks to the playbook end
...so that the machine can operate meanwhile
2017-01-20 20:19:25 +01:00
clime
986292e1b6 copr-dist-git: use directory recurse to set ownership of cgit_pkg_list file 2017-01-19 22:42:31 +01:00
clime
f92cf56dff copr-dist-git: use dnf ansible module instead of yum 2017-01-19 16:13:31 +01:00
clime
48cf5488e0 copr-dist-git: use dnf ansible plugin instead of yum-deprecated shell command 2017-01-19 16:11:50 +01:00
Kevin Fenzi
b1a2d105c9 In ansible 2.2 always_run is depreciated. Switch to check_mode. 2016-11-01 16:29:49 +00:00
Miroslav Suchý
97fcc42763 copr: use f24 chroot for mock-scm 2016-10-31 12:00:23 +01:00
Kevin Fenzi
4e0d8bad1d Move these to templates as we have some variables to set. 2016-09-25 16:32:47 +00:00
Kevin Fenzi
79a0cb2dce Make cgitrc and cgitrc.slow files and copy them over instead of lineinline and a remote copy that changes every run. 2016-09-25 16:25:53 +00:00
clime
a09c776cca add copr-service to docker group for copr-dist-git.service 2016-09-19 18:47:02 +02:00
clime
5ebe0801a7 upgrade copr-dist-git if higher version is available 2016-09-19 16:56:27 +02:00
clime
25b81efb87 fix clone url for copr-dist-git 2016-09-15 13:34:00 +02:00
clime
6ec8a7ea2e make copr-dist-git compatible with the latest fedpkg versions 2016-09-14 02:40:44 +02:00
clime
5463c97775 display clone url in copr cgit repos 2016-09-09 10:12:59 +02:00
Kevin Fenzi
746faca21c comment duplicate scan-path lineinfile that was making 2 tasks change every run 2016-07-21 16:20:49 +00:00
Miroslav Suchý
0113684f11 copr: clean /tmp periodicaly
this is needed mainly due rpm2gem which left files behind
See:
https://github.com/fedora-ruby/gem2rpm/issues/85
2016-07-14 16:37:37 +02:00
Miroslav Suchý
63014c2224 typo 2016-07-13 14:06:05 +02:00
Miroslav Suchý
cc79a1be34 copr: switch copr-dist-git to permissive 2016-07-12 09:25:56 +02:00
Miroslav Suchý
bcf4c81524 copr: restore some sane value for copr-dist-git httpd 2016-07-11 15:48:44 +02:00
Miroslav Suchý
92a96a7c02 copr: check if previous cronjob already finished 2016-07-11 15:33:23 +02:00
Miroslav Suchý
cc1658ce3a copr: performance tunning of cgit
See
https://lists.zx2c4.com/pipermail/cgit/2016-July/003153.html

Lets make cron job, which generate the cgitrc file.

Generate the cgitrc every hours and set TTL to 2 hours.
2016-07-11 14:42:48 +02:00
Miroslav Suchý
58754236a0 tune copr-dist-git.conf
cgit can take up to 10 minutes - rarely even longer
Once run, it will create cache, but initial run is long.
So I increased timeout a lot.
But to not take down the server with lots of processes, I limited concurent processes.
In normal situation it is more than enough.
And when cgit creates cache, it can lock down few users. But it will create the cache and next run will be fast.
2016-07-05 20:03:21 +02:00
Miroslav Suchý
7f5d1823dc copr: configure cgit cache 2016-06-30 11:42:35 +02:00
Kevin Fenzi
aca2819807 Replace command with idempotent seboolean module 2016-06-29 19:02:24 +00:00
Miroslav Suchý
76f124fc40 copr: use robots.txt for dist-git 2016-06-29 14:12:04 +02:00
Miroslav Suchý
10e94b4a99 copr: allow httpd to run cgit 2016-06-29 13:21:28 +02:00
Kevin Fenzi
e6f83f3c0f Shouldn't need to restart everytime the playbook runs. 2016-06-28 17:08:54 +00:00
Kevin Fenzi
f21a5f1991 Switch this command to a git_config module call 2016-06-27 14:28:41 +00:00
Kevin Fenzi
97f401af2c Fix tmp tmpfs mount to be idempotent and actually work. 2016-06-27 14:20:43 +00:00
Kevin Fenzi
729e640b1c Drop this recurse for a while 2016-06-26 01:51:58 +00:00
Kevin Fenzi
e2f2a0fd52 Switch some shell commands to file for idempotency 2016-06-25 20:02:06 +00:00
Kevin Fenzi
ac7673efb8 Fix incorrect path in check 2016-06-25 19:50:07 +00:00
Miroslav Suchý
d6c982c2f9 copr: own /var/log/copr-dist-git 2016-05-27 17:06:16 +02:00
Miroslav Suchý
a085020603 copr: mount this only on production 2016-05-27 08:39:31 +02:00
Kevin Fenzi
d8f55cd2b0 disable this for now to shave a few hours off master runs 2016-05-25 16:32:45 +00:00
Miroslav Suchý
fecbde877d copr: add volumes for users logs
so they are persistent
2016-05-23 14:10:03 +02:00
Miroslav Suchý
1500a5d10e copr: rename custom mock configs 2016-05-16 16:05:50 +02:00
Miroslav Suchý
2acaeb6842 copr: allow custom0 in dist-git 2016-05-16 15:24:14 +02:00
Miroslav Suchý
5c1fc3c612 copr: correct ownership for /var/lib/copr-dist-git/ 2016-05-11 14:55:43 +02:00
Miroslav Suchý
69733acd43 copr: correct the path 2016-04-28 17:22:16 +02:00
Miroslav Suchý
c575f8c805 copr: git 2.0 requires this
otherwise it emit warning
2016-04-20 14:56:31 +02:00
Miroslav Suchý
fa65438a7d copr: /var/lib/copr-dist-git/git is enough rest can be root:root 2016-04-20 14:56:31 +02:00
Miroslav Suchý
f6e9d710b9 disable this
just for devel, but I will clean it up later
2016-04-14 14:24:19 +02:00
Kevin Fenzi
ef8a705432 Don't do updates in playbooks (for a number of reasons).
1. We want all playbooks to be idempotent. If we add things like this
it means the playbook will change every single time we run it.

2. Things like this mean that if we need to change one config or
something to get the service working we may have to wait a long time
for it to apply tons of pending updates, which may break more things.

3. On all Fedora machines (that have base role anyhow) we already run
dnf-automatic to apply all security updates. We could expand that to
apply all updates if you like. Doing them daily is much better for
finding regressions

4. We expect updates are applied normally by dnf-automatic or by
sysadmins so we can know whats in the updates and be ready for issues
or restarting things.
2016-03-30 14:57:54 +00:00
Miroslav Suchý
02156cb213 copr: restart copr-dist-git 2016-03-29 17:36:11 +02:00
Miroslav Suchý
d079dda2e3 copr: upgrade to latest packages 2016-03-24 10:06:27 +01:00
clime
f29a738caf copr-dist-git.conf added to httpd configs and dist-git confs previously in httpd dir moved under httpd/dist-git/ 2016-03-15 08:33:41 +01:00
clime
eaea7faead per_task_logs_dir config option added 2016-03-14 15:47:45 +01:00
Miroslav Suchý
3ce8793c3b tag some actions as config 2016-02-29 14:29:35 +01:00