Added controllers, services, and lots of various optimizations and fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
allow booting;
|
||||
allow bootp;
|
||||
ddns-update-style interim;
|
||||
@@ -13,8 +12,6 @@ option ipxe.no-pxedhcp 1;
|
||||
option architecture-type code 93 = unsigned integer 16;
|
||||
|
||||
if exists user-class and option user-class = "iPXE" {
|
||||
#filename "http://192.168.1.1/WW4/ipxe/${mac:hexhyp}";
|
||||
#filename "http://192.168.1.1:9873/ipxe?hwaddr=${mac:hexhyp}";
|
||||
filename "http://192.168.1.1:9873/ipxe/${mac:hexhyp}";
|
||||
} else {
|
||||
if option architecture-type = 00:0B {
|
||||
@@ -32,23 +29,14 @@ if exists user-class and option user-class = "iPXE" {
|
||||
}
|
||||
}
|
||||
|
||||
subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||
range 192.168.1.10 192.168.1.99;
|
||||
subnet {{.Ipaddr}} netmask {{.Netmask}} {
|
||||
range {{.RangeStart}} {{.RangeEnd}};
|
||||
next-server 192.168.1.1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||
# not authoritative;
|
||||
# option subnet-mask 255.255.255.0;
|
||||
#}
|
||||
|
||||
#group {
|
||||
# host n0000_localdomain-eth0 {
|
||||
# option host-name n0000;
|
||||
# option domain-name "localdomain";
|
||||
# hardware ethernet 00:0c:29:c3:bf:42;
|
||||
# fixed-address 192.168.1.100;
|
||||
# next-server 192.168.1.1;
|
||||
# }
|
||||
{{range .Nodes}}
|
||||
#host {{.Fqdn}} {
|
||||
# hardware ethernet {{.NetDevs.eth0.Hwaddr}}
|
||||
# filed-address {{.NetDevs.eth0.Ipaddr}}
|
||||
#}
|
||||
{{end}}
|
||||
131
etc/nodes.conf
131
etc/nodes.conf
@@ -1,52 +1,87 @@
|
||||
nodeprofiles:
|
||||
default:
|
||||
comment: ""
|
||||
vnfs: ""
|
||||
kernel version: ""
|
||||
kernel args: crashkernel=no quiet
|
||||
nodegroups:
|
||||
default:
|
||||
comment: This is the default group
|
||||
domain name: cluster01
|
||||
profiles:
|
||||
- default
|
||||
nodes:
|
||||
n0000:
|
||||
hostname: n0000
|
||||
netdevs:
|
||||
eth0:
|
||||
type: ethernet
|
||||
hwaddr: 00:0c:29:23:8b:48
|
||||
ipaddr: 192.168.1.100
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.1.1
|
||||
ib0:
|
||||
type: infiniband
|
||||
hwaddr: aa:bb:cc:dd:ee:a0
|
||||
ipaddr: 192.168.10.100
|
||||
netmask: 255.255.255.0
|
||||
n0001:
|
||||
hostname: n0001
|
||||
ipmi ipaddr: x.x.x.x
|
||||
netdevs:
|
||||
eth0:
|
||||
hwaddr: aa:bb:cc:dd:ee:b0
|
||||
ipaddr: 192.168.1.101
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.1.1
|
||||
ib0:
|
||||
hwaddr: aa:bb:cc:dd:ee:b1
|
||||
ipaddr: 192.168.10.100
|
||||
netmask: 255.255.255.0
|
||||
group_1:
|
||||
comment: This is the group 1
|
||||
domain name: group1
|
||||
profiles:
|
||||
- default
|
||||
nodes:
|
||||
n0000:
|
||||
hostname: n0000
|
||||
netdevs:
|
||||
eth0:
|
||||
hwaddr: aa:bb:cc:dd:ee:c0
|
||||
ipaddr: 192.168.2.100
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.2.1
|
||||
|
||||
control:
|
||||
headnode01:
|
||||
comment: This is the first control system
|
||||
ipaddr: 192.168.1.1
|
||||
services:
|
||||
warewulfd:
|
||||
port: 9873
|
||||
secure: true
|
||||
dhcp:
|
||||
enabled: true
|
||||
range start: 192.168.1.100
|
||||
range end: 192.168.1.250
|
||||
assign static: false
|
||||
config file: /etc/dhcp/dhcpd.conf
|
||||
start command: service dhcp start
|
||||
restart command: killall dhcpd -HUP
|
||||
enable command: chkconfig dhcp on
|
||||
tftp:
|
||||
enabled: true
|
||||
tftproot: /var/lib/tftproot
|
||||
start command: service tftp start
|
||||
restart command: service tftp restart
|
||||
enable command: chkconfig tftp on
|
||||
nfs:
|
||||
enabled: true
|
||||
config file: /etc/exports
|
||||
exports:
|
||||
- /var/warewulf 192.168.1.1/255.255.255.0(ro,no_root_squash)
|
||||
- /home 192.168.1.1/255.255.255.0(rw,no_root_squash)
|
||||
start command: service nfs start
|
||||
restart command: service nfs restart
|
||||
enable command: chkconfig nfs on
|
||||
nodegroups:
|
||||
default:
|
||||
comment: This is the default group
|
||||
domain name: cluster01
|
||||
profiles:
|
||||
- default
|
||||
nodes:
|
||||
n0000:
|
||||
hostname: n0000
|
||||
netdevs:
|
||||
eth0:
|
||||
type: ethernet
|
||||
hwaddr: 00:0c:29:23:8b:48
|
||||
ipaddr: 192.168.1.100
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.1.1
|
||||
ib0:
|
||||
type: infiniband
|
||||
hwaddr: aa:bb:cc:dd:ee:a0
|
||||
ipaddr: 192.168.10.100
|
||||
netmask: 255.255.255.0
|
||||
n0001:
|
||||
hostname: n0001
|
||||
ipmi ipaddr: x.x.x.x
|
||||
netdevs:
|
||||
eth0:
|
||||
hwaddr: aa:bb:cc:dd:ee:b0
|
||||
ipaddr: 192.168.1.101
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.1.1
|
||||
ib0:
|
||||
hwaddr: aa:bb:cc:dd:ee:b1
|
||||
ipaddr: 192.168.10.100
|
||||
netmask: 255.255.255.0
|
||||
group_1:
|
||||
comment: This is the group 1
|
||||
domain name: group1
|
||||
profiles:
|
||||
- default
|
||||
nodes:
|
||||
n0000:
|
||||
hostname: n0000
|
||||
netdevs:
|
||||
eth0:
|
||||
hwaddr: aa:bb:cc:dd:ee:c0
|
||||
ipaddr: 192.168.2.100
|
||||
netmask: 255.255.255.0
|
||||
gateway: 192.168.2.1
|
||||
|
||||
Reference in New Issue
Block a user