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 d98e4cd9d0
commit bd90e442ac
11 changed files with 115 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,32 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: host6
Upstream-Contact: University of Leeds
Source: https://forge.puppet.com/modules/uol/host6
Files: *
Copyright: 2014 University of Leeds
License: Apache-2
Upstream-Name: puppet-module-uol-host6
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Source: https://opendev.org/starlingx/integ/src/branch/master/config/puppet-modules/puppet-module-uol-host6
Files: debian/*
Copyright: (c) 2024 Wind River Systems, Inc.
License: Apache-2
License: Apache-2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
On Debian-based systems the full text of the Apache version 2.0 license
can be found in `/usr/share/common-licenses/Apache-2.0'.

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,9 @@
---
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