summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja')
-rw-r--r--glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja27
1 files changed, 27 insertions, 0 deletions
diff --git a/glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja b/glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja
new file mode 100644
index 0000000..e4bc1d8
--- /dev/null
+++ b/glustolibs-gluster/gdeploy_configs/add_node_to_nfs_ganesha_cluster.jinja
@@ -0,0 +1,27 @@
+[hosts]{% for server in servers %}
+{{server}}{% endfor %}
+
+[peer]
+action=probe
+
+#Enabling firewall ports
+[firewalld]
+action=add
+ports=111/tcp,2049/tcp,54321/tcp,5900/tcp,5900-6923/tcp,5666/tcp,16514/tcp
+services=glusterfs,nlm,nfs,rpc-bind,high-availability,mountd,rquota
+permanent=true
+zone=public
+
+[clients]
+action=mount
+volname={{ node_to_add }}:/gluster_shared_storage
+hosts={{ node_to_add }}
+fstype=glusterfs
+client_mount_points=/var/run/gluster/shared_storage/
+
+[nfs-ganesha]
+action=add-node
+cluster_nodes={{ cluster_nodes|join(',') }}
+nodes={{ node_to_add }}
+vip={{ vip }}
+