summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-04-20 19:55:11 +0000
committerKevin Fenzi <kevin@scrye.com>2016-04-20 19:55:11 +0000
commite4e1cb33359842cbd91b3fea947cb2b976fef0de (patch)
tree72177139b264ff3385b1ea7094d0d0d0d9344504
parentad885c7f8a2ed47c6cf2c969940ff842b0ff1940 (diff)
Try and fix composer.stg nfs mounts.
-rw-r--r--roles/nfs/client/tasks/main.yml27
1 files changed, 24 insertions, 3 deletions
diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml
index d16c4b88d..13fb92aaf 100644
--- a/roles/nfs/client/tasks/main.yml
+++ b/roles/nfs/client/tasks/main.yml
@@ -100,13 +100,34 @@
tags:
- nfs/client
-- name: nfs mount points (stg)
+#
+# In stg we need to mount the koji01.stg volume rw and the
+# production nfs volume ro. Since the setup here isn't good
+# for multiple nfs mounts, we just hard code needed staging bits
+# here. If it becomes more common to have multiple mounts, we
+# should revisit how this role works.
+#
+
+- name: nfs mount points (stg) staging koji
mount: >
- name={{ mnt_dir }}
+ name=/mnt/fedora_koji
src=10.5.126.87:/mnt/{{ nfs_src_dir }}
fstype=nfs4
opts={{nfs_mount_opts}}
- passno=0
+ passno=0
+ dump=0
+ state=mounted
+ when: datacenter == 'staging'
+ tags:
+ - nfs/client
+
+- name: nfs mount points (stg) production koji ro
+ mount: >
+ name={{ mnt_dir }}
+ src=ntap-phx2-c01-fedora01-nfs.storage.phx2.redhat.com:/mnt/{{ nfs_src_dir }}
+ fstype=nfs
+ opts=ro,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3
+ passno=0
dump=0
state=mounted
when: datacenter == 'staging'