testing if the tests with centreon-connector-perl will work

This commit is contained in:
sfarouq-ext 2025-07-01 16:07:28 +02:00 committed by omercier
parent 4ff63a0778
commit cc6a3f0c02
7 changed files with 20 additions and 12 deletions

View File

@ -64,6 +64,7 @@ dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/e
dnf update -y
dnf install -y centreon-connector-perl centreon-clib
rm -f /etc/yum.repos.d/centreon-plugins.repo
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/

View File

@ -4,7 +4,12 @@ FROM ${REGISTRY_URL}/almalinux:9
RUN bash -e <<EOF
dnf install -y 'dnf-command(config-manager)' epel-release zstd jq
useradd snmp
mkdir -p /var/lib/snmp/cert_indexes/
chown snmp:snmp -R /var/lib/snmp/cert_indexes/
mkdir -p /tmp/cache/
dnf install -y dnf-plugins-core epel-release zstd jq
dnf config-manager --set-enabled crb
dnf clean all
@ -61,8 +66,10 @@ gpgkey=https://yum-gpg.centreon.com/RPM-GPG-KEY-CES\n'\
# Add Centreon plugins repositories
dnf config-manager --add-repo https://packages.centreon.com/rpm-standard/24.10/el9/centreon-24.10.repo
dnf update -y
dnf install -y centreon-connector-perl centreon-clib
dnf update -y
rm -f /etc/yum.repos.d/centreon-plugins.repo
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/

View File

@ -22,7 +22,7 @@ EOF
ENV LANG=en_US.utf8
RUN bash -ex <<EOF
RUN bash -e <<EOF
# Avoid apt to clean packages cache directory
rm -f /etc/apt/apt.conf.d/docker-clean
@ -59,8 +59,6 @@ rm -f /etc/apt/sources.list.d/centreon.list
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/
apt-get update -y
apt-get clean -y
apt-get clean
EOF

View File

@ -5,7 +5,7 @@ FROM ${REGISTRY_URL}/debian:bullseye
ENV DEBIAN_FRONTEND=noninteractive
# fix locale
RUN bash -ex <<EOF
RUN bash -e <<EOF
useradd snmp
mkdir -p /var/lib/snmp/cert_indexes/
@ -47,7 +47,7 @@ echo "deb https://packages.centreon.com/apt-plugins-stable/ bullseye main" | tee
echo "deb https://packages.centreon.com/apt-plugins-testing/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
echo "deb https://packages.centreon.com/apt-plugins-unstable/ bullseye main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
apt-get update
apt-get update -y
apt-get install -y centreon-clib centreon-connector-perl

View File

@ -48,7 +48,7 @@ echo "deb https://packages.centreon.com/ubuntu-plugins-testing/ jammy main" | te
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ jammy main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
echo "deb https://packages.centreon.com/ubuntu-connectors-stable/ jammy main" | tee /etc/apt/sources.list.d/centreon-connectors.list
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
apt-get update
apt-get update -y
apt-get install -y centreon-clib centreon-connector-perl

View File

@ -50,9 +50,11 @@ echo "deb https://packages.centreon.com/ubuntu-plugins-stable/ noble main" | tee
echo "deb https://packages.centreon.com/ubuntu-plugins-testing/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
echo "deb https://packages.centreon.com/ubuntu-plugins-unstable/ noble main" | tee -a /etc/apt/sources.list.d/centreon-plugins.list
wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg > /dev/null 2>&1
apt-get update
apt-get update -y
apt-get install -y centreon-clib centreon-connector-perl
apt-get install -y centreon-connector-perl centreon-clib
rm -f /etc/apt/sources.list.d/centreon.list
mkdir -p /var/lib/centreon/centplugins/
chmod 777 /var/lib/centreon/centplugins/

View File

@ -16,7 +16,7 @@
# 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.
##
#
package os::linux::snmp::plugin;