diff options
author | Martin Schwenke <martin@meltin.net> | 2014-06-30 13:54:49 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2014-07-02 20:26:52 +1000 |
commit | 068f2ed64751b7bf8e227d8b5f3f52afb1e813ea (patch) | |
tree | a4567161f66096b767656b68ade281036dd4bedf /config.d | |
parent | d41b622961d65fbdd48cea58f7cfa620d0eb33d3 (diff) | |
download | autocluster-068f2ed64751b7bf8e227d8b5f3f52afb1e813ea.tar.gz autocluster-068f2ed64751b7bf8e227d8b5f3f52afb1e813ea.tar.xz autocluster-068f2ed64751b7bf8e227d8b5f3f52afb1e813ea.zip |
Rename node type "sofs_front" to "nas"
Rename 50.sofs.defconf too.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'config.d')
-rw-r--r-- | config.d/00base.defconf | 2 | ||||
-rw-r--r-- | config.d/50node_nas.defconf | 33 | ||||
-rw-r--r-- | config.d/50sofs.defconf | 33 |
3 files changed, 34 insertions, 34 deletions
diff --git a/config.d/00base.defconf b/config.d/00base.defconf index 6128d81..4f0440a 100644 --- a/config.d/00base.defconf +++ b/config.d/00base.defconf @@ -13,7 +13,7 @@ defconf CLUSTERFS_TYPE "gpfs" \ defconf CLUSTERFS_DEFAULT_MOUNTPOINT "/clusterfs" \ "<directory>" "mountpoint for default cluster filesystem" -defconf NODES "sofs_front:0-3 rhel_base:4" \ +defconf NODES "nas:0-3 rhel_base:4" \ "<nodes>" "list of node types to create, with associated IP offsets" defconf NUMNODES "" \ diff --git a/config.d/50node_nas.defconf b/config.d/50node_nas.defconf new file mode 100644 index 0000000..a0ac0c1 --- /dev/null +++ b/config.d/50node_nas.defconf @@ -0,0 +1,33 @@ +# Hey Emacs, this is a -*- shell-script -*- !!! + +hack_nodes_nas () +{ + local node_count_nas=0 + hack_filter () + { + if [ "$node_type" = "nas" ] ; then + node_count_nas=$(($node_count_nas + 1)) + name="${CLUSTER}nas${node_count_nas}" + ctdb_node=1 + fi + } + hack_all_nodes_with hack_filter +} + +register_hook hack_nodes_functions hack_nodes_nas + +create_node_nas () +{ + local ip_offset="$1" + local name="$2" + local ctdb_node="$3" + + echo "Creating NAS node $name" + + create_node_COMMON "$name" "$ip_offset" "$type" +} + +node_has_shared_disks_nas () +{ + ! have_dedicated_storage_nodes +} diff --git a/config.d/50sofs.defconf b/config.d/50sofs.defconf deleted file mode 100644 index 95cfc5f..0000000 --- a/config.d/50sofs.defconf +++ /dev/null @@ -1,33 +0,0 @@ -# Hey Emacs, this is a -*- shell-script -*- !!! - -hack_nodes_sofs_front () -{ - local node_count_sofs_front=0 - hack_filter () - { - if [ "$node_type" = "sofs_front" ] ; then - node_count_sofs_front=$(($node_count_sofs_front + 1)) - name="${CLUSTER}front${node_count_sofs_front}" - ctdb_node=1 - fi - } - hack_all_nodes_with hack_filter -} - -register_hook hack_nodes_functions hack_nodes_sofs_front - -create_node_sofs_front () -{ - local ip_offset="$1" - local name="$2" - local ctdb_node="$3" - - echo "Creating SoFS front-end node $name" - - create_node_COMMON "$name" "$ip_offset" "$type" -} - -node_has_shared_disks_sofs_front () -{ - ! have_dedicated_storage_nodes -} |