Page MenuHomePhabricator

Clear /srv/.git on contint1001
Open, LowPublic

Description

The websites for https://integration.wikimedia.org and https://doc.wikimedia.org are in integration/docroot.git which is cloned at /srv

/srv belongs to root:root and also is a place for different materials such as the jenkins build history or zuul git repositories.

I had to manually hack /srv to be owned by jenkins-slave. It should be made back to root:root AND the .git repo should be cloned one level deeper instead of directly in /srv. A good candidate would be /srv/docroot.

Event Timeline

hashar created this task.Nov 3 2016, 5:35 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 3 2016, 5:35 PM
Paladox added a subscriber: Paladox.Nov 4 2016, 2:09 AM
hashar triaged this task as Low priority.Nov 18 2016, 3:12 PM
hashar moved this task from Untriaged to Backlog on the Continuous-Integration-Infrastructure board.
hashar updated the task description. (Show Details)Dec 19 2018, 7:45 PM

Change 480828 had a related patch set uploaded (by Hashar; owner: Hashar):
[integration/docroot@master] scap configuration for deployment

https://gerrit.wikimedia.org/r/480828

Change 480879 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] doc: clone integration/docroot

https://gerrit.wikimedia.org/r/480879

Change 480881 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] doc: relocate from /srv to /srv/docroot

https://gerrit.wikimedia.org/r/480881

hashar claimed this task.Dec 19 2018, 11:00 PM

Will be addressed as we migrate the documentation hosting to a new host. I am intending to have integration/docroot.git to be cloned to /srv/docroot which can thus be owned by someone else than the root user.

Change 480879 merged by Dzahn:
[operations/puppet@production] doc: clone integration/docroot

https://gerrit.wikimedia.org/r/480879

Dzahn added a subscriber: Dzahn.Dec 20 2018, 12:56 AM

puppet created the dir and git clone contents after the merge above:

[doc1001:/srv/docroot] $ ls
total 60K
4.0K drwxrwsr-x 6 nobody wikidev 4.0K Dec 20 00:51 .
4.0K drwxr-xr-x 4 root   root    4.0K Dec 20 00:51 ..
4.0K -rw-rw-r-- 1 nobody wikidev  326 Dec 20 00:51 composer.json
4.0K drwxrwsr-x 8 nobody wikidev 4.0K Dec 20 00:51 .git
4.0K -rw-rw-r-- 1 nobody wikidev  356 Dec 20 00:51 .gitignore
4.0K -rw-rw-r-- 1 nobody wikidev   99 Dec 20 00:51 .gitreview
..

Change 480881 merged by Dzahn:
[operations/puppet@production] doc: relocate from /srv to /srv/docroot

https://gerrit.wikimedia.org/r/480881

Dzahn added a comment.Dec 20 2018, 6:09 PM

moved the files around on doc1001, but this one did not change things on contint* yet

I am leaving contint1001 as is :) The task would thus be solved once we switch doc.wikimedia.org hosting to doc1001.eqiad.wmnet.

Thanks for all the patches

https://doc.wikimedia.org/ is now served by doc1001.eqiad.wmnet. integration/docroot is cloned to /srv/docroot.

On contint1001 the old doc still has to be cleaned out, then we have to migrate https://integration.wikimedia.org/ document root to /srv/docroot as well.

hashar removed hashar as the assignee of this task.Mar 19 2019, 7:36 PM