-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathhost.config
36 lines (32 loc) · 1.24 KB
/
host.config
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
################################################################################
################################################################################
#
# Define host-specific values for these variables:
#
# freenashost : defaults to short hostname returned by 'hostname -s'
# esxihost : user-defined
# datastores : user-defined
# logdir : user-defined (and must exist before use)
#
################################################################################
################################################################################
freenashost=$(hostname -s)
# Edit to suit your needs and environment
# This is an example, showing the setup for these AIO systems:
#
# FreeNAS host 'bacon' running on ESXi host 'fritz' with datastores 'BACON' and 'BACON_BLOCK'
# FreeNAS host 'boomer' running on ESXi host 'felix' with datastore 'BOOMER'
#
# Configured to store logs in unique directories specified by 'logdir'
if [ "${freenashost}" = "bacon" ]; then
esxihost=fritz
datastores="BACON BACON_BLOCK"
logdir=/mnt/tank/systems/scripts/logs/bacon
elif [ "${freenashost}" = "boomer" ]; then
esxihost=felix
datastores="BOOMER"
logdir=/mnt/tank/systems/scripts/logs/boomer
else
echo "Undefined system!"
exit 1
fi