summaryrefslogtreecommitdiffstats
path: root/config.d/57node_ad.defconf
blob: 607c97049c0c2c32a909bc240f3f3ad1f0478f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Hey Emacs, this is a -*- shell-script -*- !!!

defconf AD_ADMIN_PASS "p@ssw0rd" \
	"<pass>" "Administrator password"

defconf AD_FUNCTION_LEVEL "2008" \
	"<2003|2008|2008_R2>" "Domain and Forest function level"

defconf AD_NETBIOS_NAME "samba4" \
	"<string>" "NetBIOS name to use for AD server"

defconf AD_DNS_FORWARDER "@uto" \
	"<ip>" "DNS server for AD server to forward to"

ad_post_config_hook ()
{
    if [ "$AD_DNS_FORWARDER" = "@uto" ] ; then
	AD_DNS_FORWARDER="$KVMHOST"
    fi
}
register_hook post_config_hooks ad_post_config_hook

node_name_format_ad ()
{
    local cluster="$1"
    local index="$2"

    printf '%sad%d' "$cluster" "$index"
}

cluster_setup_tasks_ad ()
{
    case "$1" in
	install_packages) echo "ad"  ;;
	setup_clusterfs)  echo ""    ;;
	setup_node)       echo "ad"  ;;
	setup_cluster)    echo ""    ;;
    esac
}