| 111 | This file attempts to configure several of the services to standard defaults based on the |
| 112 | FQDN of the machine and the contents of the site.yaml file. The following files are modified: |
| 113 | [[CollapsibleStart(/etc/dhcpd/dhcpd.conf)]] |
| 114 | This file is populated based on the contents of the site.yaml file. It will produce |
| 115 | appropriate entries for all the interfaces of the nodes. Note that this requires the |
| 116 | interfaces be ordered according to the original labeling. The contents looks like: |
| 117 | {{{ |
| 118 | option domain-name "geni.rutgers.edu"; |
| 119 | authoritative; |
| 120 | use-host-decl-names on; |
| 121 | get-lease-hostnames true; |
| 122 | ping-check false; |
| 123 | ping-timeout 0; |
| 124 | log-facility local7; |
| 125 | default-lease-time 86400; |
| 126 | max-lease-time 86400; |
| 127 | ddns-updates off; |
| 128 | |
| 129 | subnet 10.3.0.0 netmask 255.255.255.0 { |
| 130 | option domain-name-servers 10.3.0.254; |
| 131 | option routers 10.3.0.254; |
| 132 | option ntp-servers 10.3.0.254; |
| 133 | next-server 10.3.0.254; |
| 134 | |
| 135 | host cons1 { hardware ethernet 00:20:4a:d5:94:83; fixed-address 10.3.0.101; } |
| 136 | host cons2 { hardware ethernet 00:20:4a:d5:94:f1; fixed-address 10.3.0.102; } |
| 137 | host cons3 { hardware ethernet 00:20:4a:d5:94:e1; fixed-address 10.3.0.103; } |
| 138 | |
| 139 | } |
| 140 | |
| 141 | subnet 10.1.0.0 netmask 255.255.255.0 { |
| 142 | option domain-name-servers 10.1.0.254; |
| 143 | option routers 10.1.0.254; |
| 144 | option log-servers 10.1.0.254; |
| 145 | option ntp-servers 10.1.0.254; |
| 146 | filename "pxelinux.0"; |
| 147 | next-server 10.1.0.254; |
| 148 | |
| 149 | host node1 { hardware ethernet 00:03:1d:0c:d3:73; fixed-address node1.geni.rutgers.edu; } |
| 150 | host node2 { hardware ethernet 00:03:1d:0c:d3:89; fixed-address node2.geni.rutgers.edu; } |
| 151 | host node3 { hardware ethernet 00:03:1d:0c:d3:71; fixed-address node3.geni.rutgers.edu; } |
| 152 | |
| 153 | } |
| 154 | |
| 155 | subnet 10.2.0.0 netmask 255.255.255.0 { |
| 156 | option ntp-servers 10.2.0.254; |
| 157 | filename "/pxelinux.fake"; |
| 158 | |
| 159 | host data1 { hardware ethernet 00:03:1d:0c:d3:72; fixed-address 10.2.0.1; } |
| 160 | host data2 { hardware ethernet 00:03:1d:0c:d3:88; fixed-address 10.2.0.2; } |
| 161 | host data3 { hardware ethernet 00:03:1d:0c:d3:70; fixed-address 10.2.0.3; } |
| 162 | |
| 163 | } |
| 164 | }}} |
| 165 | [[CollapsibleEnd]] |
| 166 | |
| 167 | |
| 168 | ---- |
| 169 | |