From 8f27989ba7524851b53140258390bb896674c9c4 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 19 Aug 2024 12:30:40 -0400 Subject: update the utilites for current paths, rearrange whole package for 0.0.4-1 --- src/etc/bash_completion.d/updatezone | 13 +++++++++++++ src/etc/ddtools/ipa.example.com.conf.example | 7 +++++++ src/etc/sysconfig/dhcpd-control | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 src/etc/bash_completion.d/updatezone create mode 100644 src/etc/ddtools/ipa.example.com.conf.example create mode 100644 src/etc/sysconfig/dhcpd-control (limited to 'src/etc') diff --git a/src/etc/bash_completion.d/updatezone b/src/etc/bash_completion.d/updatezone new file mode 100644 index 0000000..f55d1ce --- /dev/null +++ b/src/etc/bash_completion.d/updatezone @@ -0,0 +1,13 @@ +_updatezone_autocomplete() { + #devtty=/dev/pts/2 + local cur prev words cword; + _init_completion || return + local _tmpfile1="$( mktemp )" + grep -iE "UZ_ZONE_NAME=" /etc/ddtools/*.conf 2>/dev/null | sed -r -e 's/^UZ_.*=//;' >> "${_tmpfile1}" + #echo "----- ${cur} --- prev: ${prev} -- words: ${words} -- cword: ${cword} --" > "${devtty}" + grep -viE "${cur}" "${_tmpfile1}" + COMPREPLY=($( compgen -W "$( grep -viE "${prev}" "${_tmpfile1}" )" -- "$cur" )) + command rm -f "${_tmpfile1}" 1>/dev/null 2>&1 + return 0 +} +complete -F _updatezone_autocomplete updatezone diff --git a/src/etc/ddtools/ipa.example.com.conf.example b/src/etc/ddtools/ipa.example.com.conf.example new file mode 100644 index 0000000..060005a --- /dev/null +++ b/src/etc/ddtools/ipa.example.com.conf.example @@ -0,0 +1,7 @@ +UZ_ZONE_NAME=ipa.example.com +UZ_FORWARD_ZONE=ipa.example.com +UZ_FORWARD_FILE=/var/named/data/db.ipa.example.com +UZ_REVERSE_ZONE=1.168.192.in-addr.arpa +UZ_REVERSE_FILE=/var/named/data/db.192.168.1 +UZ_SLAVE_COUNT=1 +UZ_SLAVE_1=dns2 diff --git a/src/etc/sysconfig/dhcpd-control b/src/etc/sysconfig/dhcpd-control new file mode 100644 index 0000000..3073169 --- /dev/null +++ b/src/etc/sysconfig/dhcpd-control @@ -0,0 +1,5 @@ +DHCPD_CONTROL_COMBINED_FILE=/etc/dhcp/dhcpd.combined.conf +DHCPD_CONTROL_DHCPD_FILE=/etc/dhcp/dhcpd.conf +DHCPD_CONTROL_LEASES_FILE=/var/lib/dhcpd/dhcpd.leases +DHCPD_CONTROL_LEASES_TEMP_FILE=/var/lib/dhcpd/dhcpd.leases~ +DHCPD_CONTROL_SERVICE=dhcpd -- cgit