mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user