Stab at using nfs_client role for nfs mounts

This commit is contained in:
Kevin Fenzi 2014-04-21 19:00:03 +00:00
parent c2b06a44fc
commit 2454e84d09
3 changed files with 9 additions and 8 deletions

View file

@ -0,0 +1,7 @@
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.5.126.89 admin.fedoraproject.org
10.5.126.88 proxy01.phx2.fedoraproject.org proxy1 proxy2 proxy3 proxy4 proxy01 proxy02 proxy03 proxy04 fedoraproject.org
10.5.126.86 fas01.phx2.fedoraproject.org fas1 fas2 fas01 fas02 fas03 fas-all
10.5.126.23 infrastructure.fedoraproject.org

View file

@ -38,6 +38,8 @@
- nagios_client
- fas_client
- fedmsg/base
- { role: nfs_client, when: env == "staging", mnt_dir: '/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments' }
- { role: nfs_client, when: env != "staging", mnt_dir: '/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }
- mediawiki
tasks:

View file

@ -32,14 +32,6 @@
- name: startup apache
service: name=httpd enabled=yes state=started
- name: mount staging attachments
mount: name=/srv/web/attachments src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/fedora_app_staging/app/attachments fstype=nfs opts=defaults,rw,hard,intr,nfsvers=3 state=mounted
when: env == "staging"
- name: mount attachments
mount: name=/srv/web/attachments src=vtap-fedora-nfs01.storage.phx2.redhat.com:/vol/fedora_app/app/attachments fstype=nfs opts=defaults,rw,hard,intr,nfsvers=3 state=mounted
when: env != "staging"
- name: Fedora branding
copy: src=skins/ dest=/usr/share/mediawiki119/skins owner=root group=root mode=775
tags: