summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja
diff options
context:
space:
mode:
authorArthy Loganathan <aloganat@redhat.com>2017-06-01 15:16:39 +0530
committerJonathan Holloway <jholloway@redhat.com>2017-06-20 16:00:10 +0000
commit710acdec96e3f12fdddb7750ac6c40d07317c1b6 (patch)
tree2cf15db96fc0cd64f52dffa475eeca4317b70adc /glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja
parent5bfa198c2267b4180b54976b5ff42edc84c58cd9 (diff)
Added gdeploy configuration files ad jinja templates for nfs ganesha operations
Change-Id: I30f8b464d2193909a0d83daff7ea695b97fb3863 Signed-off-by: Arthy Loganathan <aloganat@redhat.com>
Diffstat (limited to 'glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja')
-rw-r--r--glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja31
1 files changed, 31 insertions, 0 deletions
diff --git a/glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja b/glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja
new file mode 100644
index 0000000..db0c2a6
--- /dev/null
+++ b/glustolibs-gluster/gdeploy_configs/nfs_ganesha_client_configuration.jinja
@@ -0,0 +1,31 @@
+[hosts]{% for server in servers %}
+{{server}}{% endfor %}
+
+[yum1]
+action=install
+gpgcheck=yes
+packages=nfs-utils
+
+#Enabling firewall ports
+[firewalld]
+action=add
+ports=662/tcp,662/udp,32803/tcp,32769/udp
+permanent=true
+zone=public
+
+[shell1]
+action=execute
+command=sed -i '/STATD_PORT/s/^#//' /etc/sysconfig/nfs
+
+[shell2]
+action=execute
+command=sed -i '/LOCKD_TCPPORT/s/^#//' /etc/sysconfig/nfs
+
+[shell3]
+action=execute
+command=sed -i '/LOCKD_UDPPORT/s/^#//' /etc/sysconfig/nfs
+
+[service]
+action=restart
+service=nfs-config,rpc-statd,nfslock
+