aboutsummaryrefslogtreecommitdiffstats
path: root/group_vars
diff options
context:
space:
mode:
Diffstat (limited to 'group_vars')
-rw-r--r--group_vars/all10
-rw-r--r--group_vars/master37
2 files changed, 47 insertions, 0 deletions
diff --git a/group_vars/all b/group_vars/all
new file mode 100644
index 0000000..bed36a9
--- /dev/null
+++ b/group_vars/all
@@ -0,0 +1,10 @@
+---
+# Cluster name
+# Also to be used as the hostname of the master node,
+# and as the NIS domain name
+cluster_name: xcluster
+
+# Number of cluster nodes (exclude the master node)
+num_nodes: 3
+
+# vim: set ft=yaml sw=2:
diff --git a/group_vars/master b/group_vars/master
new file mode 100644
index 0000000..d5084e5
--- /dev/null
+++ b/group_vars/master
@@ -0,0 +1,37 @@
+---
+#
+# Variables for the master node only
+#
+
+#
+# WAN
+#
+
+# Interface attached to the WAN
+wan_if: eth1
+
+#
+# LAN for the cluster nodes
+#
+
+# Interface attached to the cluster LAN
+lan_if: eth0
+# LAN IP for the master
+lan_ip: 192.168.1.254
+
+lan_dhcp_begin: 192.168.1.1
+lan_dhcp_end: 192.168.1.200
+lan_netmask: 255.255.255.0
+
+#
+# Auto system installation for nodes
+#
+
+tftp_root: /srv/tftp
+
+# Mirror from where to install packages
+apt_mirror: ftp.sjtu.edu.cn
+# Source for the security updates
+apt_security_host: ftp.sjtu.edu.cn
+
+# vim: set ft=yaml sw=2: