Implement DNS resolution for secondary pool addresses

This commit adds host6 puppet module, that will be used to support dual-stack
on /etc/hosts file rendering.

Test Plan:
[PASS] AIO-SX deployment
       - Test "dpkg -l puppet-module-uol-host6"
       - check presence of /usr/share/puppet/modules/host6

Story: 2011027
Task: 49801

Change-Id: I0fde31808fe671892582a3cdb2764f8b8c7b48b8
Signed-off-by: Tara Nath Subedi <Tara.Subedi@windriver.com>
This commit is contained in:
Tara Subedi 2024-04-02 13:54:59 -04:00
parent 1b0db90e43
commit 81d1eaf742
10 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,5 @@
puppet-module-uol-host6 (0.0.1) UNRELEASED; urgency=medium
* Initial release.
-- Tara Nath Subedi <Tara.Subedi@windriver.com> Tue, 2 Apr 2024 09:46:51 -0500

View File

@ -0,0 +1,13 @@
Source: puppet-module-uol-host6
Section: admin
Priority: optional
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.4.1
Homepage: https://www.starlingx.io
Package: puppet-module-uol-host6
Architecture: any
Description: Puppet module named puppet-module-uol-host6
This module manages IPv4 and IPv6 entries in /etc/hosts like the resource host from Puppetlabs.
This module is derived from the host resource from within puppet. Use like the resource host, but is keyed on IP.

View File

@ -0,0 +1,2 @@
metadata.json usr/share/puppet/modules.available/puppet-module-uol-host6
lib usr/share/puppet/modules.available/puppet-module-uol-host6

View File

@ -0,0 +1,14 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "configure" ] ; then
update-alternatives --install /usr/share/puppet/modules/host6 puppet-module-uol-host6 \
/usr/share/puppet/modules.available/puppet-module-uol-host6 500
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,14 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "remove" ] || [ "${1}" = "disappear" ]; then
update-alternatives --remove puppet-module-uol-host6 \
/usr/share/puppet/modules.available/puppet-module-uol-host6
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,14 @@
#!/bin/sh
# see: dh_installdeb(1)
set -e
if [ "${1}" = "remove" ] || [ "${1}" = "upgrade" || [ "${1}" = "deconfigure" ]; then
update-alternatives --remove puppet-module-uol-host6 \
/usr/share/puppet/modules.available/puppet-module-uol-host6
fi
#DEBHELPER#
exit 0

View File

@ -0,0 +1,8 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@

View File

@ -0,0 +1,10 @@
---
debname: puppet-module-uol-host6
debver: 0.0.1
dl_path:
name: uol-host6-0.0.1.tar.gz
url: https://forge.puppet.com/v3/files/uol-host6-0.0.1.tar.gz
sha256sum: 3a36850a1d63c6d18ced763c839b94ce25e277d5fef1fdad35d01a4895a8ee26
revision:
dist: $STX_DIST

View File

@ -352,6 +352,9 @@ puppet-module-puppetlabs-postgresql
#puppetlabs-stdlib-5.0.0
puppet-module-puppetlabs-stdlib
#puppet-module-uol-host6
puppet-module-uol-host6
#puppet-zitrlp-strongswan
puppet-zitrlp-strongswan

View File

@ -35,6 +35,7 @@ config/puppet-modules/puppet-ldap
config/puppet-modules/puppet-hash2stuff
config/puppet-modules/puppet-lvm-1.4.0
config/puppet-modules/puppet-memcached
config/puppet-modules/puppet-module-uol-host6
config/puppet-modules/puppet-network
config/puppet-modules/puppet-puppi
config/puppet-modules/puppet-rabbitmq-8.5.0