Point wiki at new nfs mount dir.

Under the rule of puppet, the app servers mounted this nfs share at
/srv/web/attachments but the new ansible nfs_client role has us mounting it at
/mnt/web/attachments.  Here, I'm just adjusting the wiki config to look for
uploaded content at that new location.  This assumes we want to stick with /mnt/
over /srv/.
This commit is contained in:
Ralph Bean
2014-04-23 13:27:23 +00:00
parent e551044685
commit 78a35fe77b
3 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
- config
- name: creating attachments dir
file: path=/srv/web/attachments owner=apache group=root mode=755 state=directory
file: path=/mnt/web/attachments owner=apache group=root mode=755 state=directory
- name: startup apache
service: name=httpd enabled=yes state=started

View File

@@ -29,7 +29,7 @@ require_once( "extensions/ConfirmEdit/ConfirmEdit.php" );
#require_once( "extensions/ConfirmEdit/FancyCaptcha.php" );
$wgCaptchaClass = 'SimpleCaptcha';
#$wgCaptchaClass = 'FancyCaptcha';
#$wgCaptchaDirectory = "/srv/web/attachments/captchas";
#$wgCaptchaDirectory = "/mnt/web/attachments/captchas";
#$wgCaptchaDirectoryLevels = 0;
#$wgCaptchaSecret = "{{ mediawikiCaptchaKey }}";
@@ -62,7 +62,7 @@ $wgSitename = "FedoraProject";
$wgUploadPath = "$wgScriptPath/attachments"; /// defaults to "{$wgScriptPath}/images"
$wgUploadPath = "/w/uploads"; /// defaults to "{$wgScriptPath}/images"
$wgUploadDirectory = "/srv/web/attachments"; /// defaults to "{$IP}/images"
$wgUploadDirectory = "/mnt/web/attachments"; /// defaults to "{$IP}/images"
$wgHashedUploadDirectory = true;
$wgCheckFileExtensions=false;
$wgStrictFileExtensions=false;

View File

@@ -1,5 +1,5 @@
# Shared uploads directory.
Alias /{{ wpath }}/uploads /srv/web/attachments
Alias /{{ wpath }}/uploads /mnt/web/attachments
Alias /{{ wpath }} /srv/web/{{ wikiname }}-wiki
Alias /{{ wikipath }} /srv/web/{{ wikiname }}-wiki/index.php