Add nfs-server and make koji01.stg use it.

This commit is contained in:
Kevin Fenzi 2014-06-04 18:14:49 +00:00
parent 06bd8dfd92
commit 80d408dede
3 changed files with 31 additions and 0 deletions

View file

@ -39,6 +39,7 @@
- collectd/base
- fedmsg/base
- { role: koji_builder, when: env == "staging" }
- { role: nfs/server, when: env == "staging" }
- koji_hub
tasks:

View file

@ -0,0 +1 @@
/mnt/koji 10.5.126.90(rw,no_root_squash) 10.5.126.14(rw,no_root_squash)

View file

@ -0,0 +1,29 @@
#
# Install needed packages
#
- name: Install needed nfs server packages
yum: pkg={{ item }} state=installed
with_items:
- nfs-utils
- rpcbind
- name: setup /etc/exports
copy: src={{ ansible_hostname }}-exports dest=/etc/exports
tag:
- nfs/server
- name: enable nfs-related services and run them (fedora)
action: service name={{ item }} enabled=true state=started
with_items:
- nfs-idmap
- nfs-lock
when: ansible_distribution == 'Fedora'
- name: enable nfs-related services and run them (rhel)
action: service name={{ item }} enabled=true state=started
with_items:
- rpcidmapd
- rpcbind
- nfs
- nfslock
when: ansible_distribution == 'RedHat'