node_name_format_* functions should produce the node name
[tridge/autocluster.git] / config.d / 57node_ad.defconf
1 # Hey Emacs, this is a -*- shell-script -*- !!!
2
3 defconf AD_ADMIN_PASS "p@ssw0rd" \
4         "<pass>" "Administrator password"
5
6 defconf AD_FUNCTION_LEVEL "2008" \
7         "<2003|2008|2008_R2>" "Domain and Forest function level"
8
9 defconf AD_NETBIOS_NAME "samba4" \
10         "<string>" "NetBIOS name to use for AD server"
11
12 node_name_format_ad ()
13 {
14     local cluster="$1"
15     local index="$2"
16
17     printf '%sad%d' "$cluster" "$index"
18 }
19
20 cluster_setup_tasks_ad ()
21 {
22     case "$1" in
23         install_packages) echo "ad"  ;;
24         setup_clusterfs)  echo ""    ;;
25         setup_node)       echo "ad"  ;;
26         setup_cluster)    echo ""    ;;
27     esac
28 }