dhcpd.conf fix ;
This commit is contained in:
parent
be6d55da28
commit
c1d16e6f77
10
deploy.sh
10
deploy.sh
|
@ -202,13 +202,13 @@ render_dhcpd_conf() {
|
|||
. "$f"
|
||||
_instance=$(check_instance "$f" "$instance")
|
||||
printf "\\thost %s {\\n" "$_instance"
|
||||
printf "\\t\\thardware ethernet %s\\n" "$(fetch_mac "$MAC_PREFIX" "$(find_vm "$VMS" "$_instance")")"
|
||||
printf "\\t\\tfixed-address %s\\n" "$(fetch_ip "$IP_PREFIX" "$IP_START" "$(find_vm "$VMS" "$_instance")")"
|
||||
printf "\\t\\thardware ethernet %s;\\n" "$(fetch_mac "$MAC_PREFIX" "$(find_vm "$VMS" "$_instance")")"
|
||||
printf "\\t\\tfixed-address %s;\\n" "$(fetch_ip "$IP_PREFIX" "$IP_START" "$(find_vm "$VMS" "$_instance")")"
|
||||
if ! test -f "${IMAGES}/${_instance}.img"
|
||||
then printf "\\t\\tfilename \"auto_install\"\\n"
|
||||
else printf "\\t\\tfilename \"auto_upgrade\"\\n"
|
||||
then printf "\\t\\tfilename \"auto_install\";\\n"
|
||||
else printf "\\t\\tfilename \"auto_upgrade\";\\n"
|
||||
fi
|
||||
printf "\\t\\toption host-name \"%s\"\\n" "$hostname"
|
||||
printf "\\t\\toption host-name \"%s\";\\n" "$hostname"
|
||||
printf "\\t}\\n"
|
||||
clear_variables
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue