ArielGlenn has submitted this change and it was merged.

Change subject: Add new wikidata folders, define dataset folders in puppet
......................................................................


Add new wikidata folders, define dataset folders in puppet

Initial step for moving the Wikibase dumps to the new location
per T72385.

I hope I got the permissions/ owners/ groups right for the
directories that already exist.

Bug: T72385
Change-Id: Idc6efba9143734511dc414c34b655f0cd6a83073
---
M modules/dataset/manifests/dirs.pp
1 file changed, 55 insertions(+), 1 deletion(-)

Approvals:
  ArielGlenn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/dataset/manifests/dirs.pp 
b/modules/dataset/manifests/dirs.pp
index 4b10e61..3894f54 100644
--- a/modules/dataset/manifests/dirs.pp
+++ b/modules/dataset/manifests/dirs.pp
@@ -1,5 +1,59 @@
 class dataset::dirs {
+    # Please note that this is incomplete, but new directories
+    # should be defined in puppet (here).
     $datadir = '/data/xmldatadumps'
     $publicdir = '/data/xmldatadumps/public'
-    $otherdir =  '/data/xmldatadumps/public/other'
+    $otherdir = '/data/xmldatadumps/public/other'
+    $otherdir_wikidata_legacy = '/data/xmldatadumps/public/other/wikidata'
+    $otherdir_wikibase = '/data/xmldatadumps/public/other/wikibase/'
+    $otherdir_wikibase_wikidatawiki = 
'/data/xmldatadumps/public/other/wikibase/wikidatawiki'
+
+    file { $datadir:
+        mode    => '0755',
+        ensure  => 'directory',
+        owner   => 'root',
+        group   => 'root',
+    }
+
+    file { $publicdir:
+        mode    => '0775',
+        ensure  => 'directory',
+        owner   => 'datasets',
+        group   => 'datasets',
+    }
+
+    file { $otherdir:
+        mode    => '0755',
+        ensure  => 'directory',
+        owner   => 'datasets',
+        group   => 'datasets',
+    }
+
+    file { $otherdir_wikibase:
+        mode    => '0755',
+        ensure  => 'directory',
+        owner   => 'datasets',
+        group   => 'datasets',
+    }
+
+    file { $otherdir_wikibase_wikidatawiki:
+        mode    => '0755',
+        ensure  => 'directory',
+        owner   => 'datasets',
+        group   => 'datasets',
+    }
+
+    # T72385
+    file { "$publicdir/wikidatawiki/entities":
+        ensure  => 'link',
+        target  => $otherdir_wikibase_wikidatawiki
+    }
+
+    # Legacy
+    file { $otherdir_wikidata_legacy:
+        mode    => '0755',
+        ensure  => 'directory',
+        owner   => 'datasets',
+        group   => 'datasets',
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/201208
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idc6efba9143734511dc414c34b655f0cd6a83073
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Hoo man <h...@online.de>
Gerrit-Reviewer: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to