summaryrefslogtreecommitdiffstats
path: root/ci/intel/pod5/maas/config.sh
blob: b5190b0f89afa97e2af26ffb01a1abb5e045e072 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash

# TODO
# run the script to configure MAASS with set of data
MAASUSER=admin
MAASPASS=admin
MAASINTF="br0"
MAASGATEWAY=10.4.0.1
MAASDHCPIPSTART=10.4.1.50
MAASDHCPIPEND=10.4.1.254
MAASSTATICSTART=10.4.2.20
MAASSTATICEND=10.4.2.254
MAASUPSTREAMDNS=10.4.0.2
MAASPROXY="http://10.4.1.1:8000/"
# END

export MAAS_URL="http://10.4.1.1/MAAS/"
export APIKEY="c6tcQz4tyS3ALajCtF:sqcWhw8MkxTjUDLZrm:hBhszBLv5EqrY8h6yktFXWUT5825ShvE"

# TODO
# collect the mac address and BMC detais to add a node into MAAS.
INTELPOD5SERV1BMCIP=10.4.2.8
INTELPOD5SERV1MAC1="00:1e:67:e0:0a:4a"
INTELPOD5SERV1MAC2="00:1e:67:e0:0a:4b"
INTELPOD5SERV1MAC3="00:1e:67:d0:9a:10"
INTELPOD5SERV1MAC4="00:1e:67:d0:9a:11"

INTELPOD5SERV2BMCIP=10.4.2.9
INTELPOD5SERV2MAC1="00:1e:67:e0:08:b0"
INTELPOD5SERV2MAC2="00:1e:67:e0:08:b1"
INTELPOD5SERV2MAC3="00:1e:67:d0:99:ee"
INTELPOD5SERV2MAC4="00:1e:67:d0:99:ef"

INTELPOD5SERV3BMCIP=10.4.2.7
INTELPOD5SERV3MAC1="00:1e:67:e0:08:7e"
INTELPOD5SERV3MAC2="00:1e:67:e0:08:7f"
INTELPOD5SERV3MAC3="00:1e:67:c2:23:d8"
INTELPOD5SERV3MAC4="00:1e:67:c2:23:d9"

INTELPOD5SERV4BMCIP=10.4.2.10
INTELPOD5SERV5MAC1="00:1e:67:cf:b8:92"
INTELPOD5SERV5MAC2="00:1e:67:cf:b8:93"
INTELPOD5SERV5MAC3="00:1e:67:d0:9b:0c"
INTELPOD5SERV5MAC4="00:1e:67:d0:9b:0d"

POWERADDRESS="qemu+ssh://user@10.4.1.1/system"
POWERID1="bootstrap"
POWERID2="node1"
POWERID2="node2"
POWERPASSWORD="Intel.123"

bootstrapMAC1="52:54:00:11:d1:85"
bootstrapMAC2="52:54:00:61:03:ae"

node1MAC1="52:54:00:1f:dc:44"
node1MAC2="52:54:00:23:e9:f9"

node2MAC1="52:54:00:08:20:97"
node2MAC2="52:54:00:af:55:38"


# BMC username and password for power management
INTELPOD5BMCUSERNAME=root
INTELPOD5BMCPASS=root

# END
maas login admin $MAAS_URL $APIKEY
#maas admin nodes list