Gehel has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/391039 )
Change subject: wdqs: ensure blazegraph data file has correct ownership ...................................................................... wdqs: ensure blazegraph data file has correct ownership Note that this will create an empty data file if it does not exist, so proper care must be taken when importing initial data. While it is possible to do ugly things with exec to modify permissions only if the file already exists, those are ugly hacks (unless someone knows of a good solution). Change-Id: Ie4e5dd21ac8cb895365ef1acb6d9dfbfc7dc4580 --- M modules/wdqs/manifests/init.pp 1 file changed, 8 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/39/391039/1 diff --git a/modules/wdqs/manifests/init.pp b/modules/wdqs/manifests/init.pp index 2623668..f8983cc 100644 --- a/modules/wdqs/manifests/init.pp +++ b/modules/wdqs/manifests/init.pp @@ -29,6 +29,7 @@ ) { $deploy_user = 'deploy-service' + $data_file = "${data_dir}/wikidata.jnl" group { $username: ensure => present, @@ -81,6 +82,13 @@ } } + file { $data_file: + ensure => file, + owner => $username, + group => $username, + mode => '0664', + } + $config_dir_group = $use_git_deploy ? { true => $deploy_user, default => 'root', -- To view, visit https://gerrit.wikimedia.org/r/391039 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie4e5dd21ac8cb895365ef1acb6d9dfbfc7dc4580 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Gehel <guillaume.leder...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits