Add puppet-memcached with FQDN support

The new release allows the use of hostname/FQDN to configure the
memcached. It is necessary to configure the parameter "listen"
instead of "listen_ip" (deprecated). The use of FQDN is necessary
to allow the reconfiguration of the MGMT network.

The management network is used extensively for all internal
communication. Since the original use of the network was a private
network before it was exposed for external communication in ai
distributed cloud configuration, it was never designed to be
reconfigured.

To support MGMT network reconfiguration the idea is to configure the
applications to use the hostname/FQDN instead of a static MGMT IP
address.

In this way, the MGMT network can be changed and the services and
applications will still work since they are using the hostname/FQDN
and the DNS will be responsible to translate to the current MGMT
IP address.

Given the complexities of supporting the multi-host reconfiguration,
this task will focus on support for AIO-SX only.

Test plan ( Debian only )
 - AIO-SX and AIO-DX virtualbox installation
 - netstat -tupl ( no services are using the MGMT IP address )

Story: 2010722
Task: 48464
Depends-on: https://review.opendev.org/c/starlingx/config/+/886208

Change-Id: Ic45b9ea8055d81dd778267bf77326ad4f641d166
Signed-off-by: Fabiano Correa Mercer <fabiano.correamercer@windriver.com>
This commit is contained in:
Fabiano Correa Mercer 2023-11-01 15:19:13 -03:00
parent 67052ac974
commit 710561e26d
16 changed files with 175 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 7bd6c2bddb9285af15988247a8fbee2e56fd8a18 Mon Sep 17 00:00:00 2001
From: Teresa Ho <teresa.ho@windriver.com>
Date: Mon, 17 Jul 2023 17:56:27 -0400
Subject: [PATCH 1/2] Change memcached dependency
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
Signed-off-by: Fabiano Correa Mercer <fabiano.correamercer@windriver.com>
---
debian/control | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 58c178c..3239aa7 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Depends:
puppet-module-openstacklib (>= 17.4.0),
puppet-module-puppetlabs-apache (>= 5.0.0),
puppet-module-puppetlabs-stdlib,
- puppet-module-saz-memcached,
+ puppet-memcached,
${misc:Depends},
Description: Puppet module for OpenStack Horizon
Puppet lets you centrally manage every important aspect of your system using a
--
2.25.1

View File

@ -0,0 +1 @@
0001-Change-memcached-dependency.patch

View File

@ -0,0 +1,29 @@
From 37e6c4120d18c11e20261f3050399267f927fe00 Mon Sep 17 00:00:00 2001
From: Teresa Ho <teresa.ho@windriver.com>
Date: Mon, 17 Jul 2023 17:57:38 -0400
Subject: [PATCH 2/2] Remove memcached dependency
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
Signed-off-by: Fabiano Correa Mercer <fabiano.correamercer@windriver.com>
---
metadata.json | 4 ----
1 file changed, 4 deletions(-)
diff --git a/metadata.json b/metadata.json
index 4f3d431..d0c7643 100644
--- a/metadata.json
+++ b/metadata.json
@@ -9,10 +9,6 @@
"name": "puppetlabs/stdlib",
"version_requirement": ">=5.0.0 <7.0.0"
},
- {
- "name": "saz/memcached",
- "version_requirement": ">=2.0.2 <3.5.0"
- },
{
"name": "openstack/openstacklib",
"version_requirement": ">=17.4.0 <18.0.0"
--
2.25.1

View File

@ -1 +1,2 @@
0001-Fix-exceptions-import-issue.patch
0002-Remove-memcached-dependency.patch

View File

@ -0,0 +1,5 @@
puppet-memcached (8.2.0-0) unstable; urgency=medium
* Initial release
-- Fabiano Mercer <fabiano.correamercer@windriver.com> Mon, 01 Jul 2023 11:50:43 +0000

View File

@ -0,0 +1,13 @@
Source: puppet-memcached
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-memcached
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, puppet
Description: Puppet module named puppet-memcached
This module will manage the memcached via puppet

View File

@ -0,0 +1,31 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: puppet-memcached
Upstream-Contact: https://github.com/saz
Source: https://github.com/saz/puppet-memcached
Files: *
Copyright: (C) 2011-2016 https://github.com/saz
License: Apache-2.0
Upstream-Name: puppet-memcached
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
Source: https://opendev.org/starlingx/integ/src/branch/master/config/puppet-modules/puppet-memcached
Files: debian/*
Copyright: (c) 2023 Wind River Systems, Inc.
License: Apache-2.0
License: Apache-2.0
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 systems, the complete text of the Apache License Version 2.0
can be found in `/usr/share/common-licenses/Apache-2.0'.

View File

@ -0,0 +1,6 @@
lib usr/share/puppet/modules.available/puppet-memcached
LICENSE usr/share/puppet/modules.available/puppet-memcached
manifests usr/share/puppet/modules.available/puppet-memcached
metadata.json usr/share/puppet/modules.available/puppet-memcached
spec usr/share/puppet/modules.available/puppet-memcached
templates usr/share/puppet/modules.available/puppet-memcached

View File

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

View File

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

View File

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

View File

@ -0,0 +1,7 @@
#!/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 @@
3.0 (quilt)

View File

@ -0,0 +1,11 @@
---
debname: puppet-memcached
debver: 8.2.0-0
dl_path:
name: puppet-memcached-8.2.0-0.tar.gz
url: https://github.com/saz/puppet-memcached/archive/refs/tags/v8.2.0.tar.gz
md5sum: 2aaac58bf4b621588884d4fbdffcfff9
sha256sum: 9d2e5910e9353fe887a13abe59b0b11464464c6317ef068b652996d39c75e692
revision:
dist: ${STX_DIST}
PKG_GITREVCOUNT: true

View File

@ -302,6 +302,9 @@ puppet-drbd
#puppet-hash2stuff
puppet-hash2stuff
#puppet-memcached
puppet-memcached
#puppet-etcd-1.12.3
puppet-module-cristifalcas-etcd

View File

@ -34,6 +34,7 @@ config/puppet-modules/puppetlabs-stdlib-5.0.0
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-network
config/puppet-modules/puppet-puppi
config/puppet-modules/puppet-rabbitmq-8.5.0