From 06f2fe3bf2e1a764a866434af7035a84aecea53d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 14 Jun 2017 23:22:43 +0800 Subject: Add basic group variables --- group_vars/all | 10 ++++++++++ group_vars/master | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 group_vars/all create mode 100644 group_vars/master 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: -- cgit v1.2.2