You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -18,19 +18,21 @@ Install
18
18
* Click the install icon for the plugin which should be listed by the plugin name
19
19
* Follow any instructions it prompts you with.
20
20
* Install the $ONABASE/www/local/plugins/build_isc_dhcp/build_dhcpd script on your DHCP server. It is suggested to place it in /opt/ona/bin
21
-
* Modify the variables at the top of the build_dhcpd script to suit your environment.
21
+
* Copy the variables at the top of the build_dhcpd script and add them to `/opt/ona/etc/build_dhcpd.conf` making adjustments as needed.
22
+
* If you wish you can just modify the variables at the top of the build_dhcpd script to suit your environment instead of making the .conf file above.
22
23
23
24
Usage
24
25
-----
25
26
First off, you must have at least one subnet defined in the database as well as a host definition for the server you will be running the DHCP server on. This host definition should have the same name and IP address as what your server is actually configured to use.
26
27
27
-
The host within ONA should be defined as a DHCP server for whatever subnets you expect it to be responsible for. You must also have a default gateway defined for the subnet and any DHCP pools that may exist. The "make" process above should have also created a system configuration variable called "build_dhcp_type" with a value of "isc".
28
+
The host within ONA should be defined as a DHCP server for whatever subnets you expect it to be responsible for. You must also have a default gateway defined for the subnet and any DHCP pools that may exist. The install process above should have also created a system configuration variable called "build_dhcp_type" with a value of "isc".
28
29
29
30
You should now see the configuration being built real time in the web interface each time you select the server host and view its DHCP server display page.
30
31
31
-
This now also exposes the [[dcm.pl]] module called _build_dhcpd_. It is used by the build_dhcpd script to extract the configuration. It is also used by the web interface to generate configuration data.
32
+
This now also exposes the [dcm.pl](https://github.com/opennetadmin/dcm) module called _build_dhcpd_. It is used by the build_dhcpd script to extract the configuration. It is also used by the web interface to generate configuration data.
32
33
33
-
There are a few configuration options in the build script that should be examined. Edit the file `/opt/ona/bin/build_dhcpd` and adjust the following options as needed:
34
+
There are a few configuration options in the build script that should be examined. Edit the variables at the top of the file `/opt/ona/bin/build_dhcpd`
35
+
or better yet, add the following to `/opt/ona/etc/build_dhcpd.conf` with adjusted options as needed:
34
36
# this will default to placing data files in /opt/ona/etc/dhcpd, you can update the following for your system as needed
35
37
# for things like chroot jails etc
36
38
ONA_PATH="${ONABASE}/etc/dhcpd"
@@ -40,8 +42,7 @@ There are a few configuration options in the build script that should be examine
40
42
SRV_FQDN=`hostname -f`
41
43
42
44
# Path to the dcm.pl command. Also include any options that might be needed
43
-
# this uses the sys_build user to process this task.
44
-
DCM_PATH="${ONABASE}/bin/dcm.pl -l sys_build"
45
+
DCM_PATH="${ONABASE}/bin/dcm.pl"
45
46
46
47
# For now a path is required to a default header.
47
48
# this will have things like the authoritative statement,ddns-update-style, and other required options
// If there were no errors, move this install file out of the way.
188
188
if (!$stat) {
189
-
$window['html'] .= " <img src='{$images}/silk/accept.png' border='0'>Moved install files.<br><br><center><b>Install complete. Not disabling install script, this way you can always find where the build script is located.<br>Even though this install may look like it failed.. everything is OK to proceed.<br><br>You should read the documentation located <a href='http://opennetadmin.com/docs/plugins/build_isc_dhcpd'>HERE</a> for further install instructions.</b><br><br><a onclick=\"removeElement('{$window_name}');\">CLOSE WINDOW</a><br></center>";
189
+
$window['html'] .= " <img src='{$images}/silk/accept.png' border='0'>Moved install files.<br><br><center><b>Install complete. Not disabling install script, this way you can always find where the build script is located.<br>Even though this install may look like it failed.. everything is OK to proceed.<br><br>You should read the documentation located <a href='https://github.com/opennetadmin/{$plugin_name}/wiki'>HERE</a> for further install instructions.</b><br><br><a onclick=\"removeElement('{$window_name}');\">CLOSE WINDOW</a><br></center>";
190
190
} else {
191
191
$window['html'] .= " <img src='{$images}/silk/error.png' border='0'> Not disabling install script due to previous errors.<br><br><center><a onclick=\"removeElement('{$window_name}');toggle_window('{$window_name}');\">Fix the errors and then click to TRY AGAIN</a></center>";
0 commit comments