From 2953e522485560469a91df32680d6899958b3cce Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Wed, 27 Jun 2018 14:59:53 +0000 Subject: [PATCH] We begin our journey up Mount Koji Signed-off-by: Rick Elrod --- inventory/group_vars/odcs-frontend | 2 ++ inventory/group_vars/odcs-frontend-stg | 4 ++++ playbooks/groups/odcs.yml | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/inventory/group_vars/odcs-frontend b/inventory/group_vars/odcs-frontend index 9045416f7d..449f01f4b6 100644 --- a/inventory/group_vars/odcs-frontend +++ b/inventory/group_vars/odcs-frontend @@ -45,6 +45,8 @@ odcs_allowed_clients_users: {"jscotka": {}, "sgallagh": {}} virt_install_command: "{{ virt_install_command_two_nic }}" +nfs_mount_opts: "ro,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3" + # For the MOTD csi_security_category: Low csi_primary_contact: Factory 2 factory2-members@fedoraproject.org diff --git a/inventory/group_vars/odcs-frontend-stg b/inventory/group_vars/odcs-frontend-stg index 56bd6ca1ea..760cdf7bb1 100644 --- a/inventory/group_vars/odcs-frontend-stg +++ b/inventory/group_vars/odcs-frontend-stg @@ -49,6 +49,10 @@ odcs_target_dir_url: https://odcs.stg.fedoraproject.org/composes odcs_allowed_clients_users: jscotka: {} +virt_install_command: "{{ virt_install_command_two_nic }}" + +nfs_mount_opts: "ro,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3" + # For the MOTD csi_security_category: Low csi_primary_contact: Factory 2 factory2-members@fedoraproject.org diff --git a/playbooks/groups/odcs.yml b/playbooks/groups/odcs.yml index d7d395f7ff..44ed6303a5 100644 --- a/playbooks/groups/odcs.yml +++ b/playbooks/groups/odcs.yml @@ -86,6 +86,14 @@ - mod_wsgi - fedmsg/base - odcs/frontend + - role: nfs/client + mnt_dir: '/mnt/fedora_koji' + nfs_src_dir: 'fedora_koji' + when: env != 'staging' + - role: nfs/client + mnt_dir: '/mnt/fedora_koji_prod' + nfs_src_dir: 'fedora_koji' + when: env == 'staging' handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml"