Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mon-147207 Sync Centreon next 23.04 #1731

Merged
merged 10 commits into from
Oct 1, 2024
2 changes: 1 addition & 1 deletion .github/actions/package-legacy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ runs:
debmake -f "Centreon" -e "[email protected]" -u "$VERSION" -y -r "bullseye"
debuild-pbuilder --no-lintian

# This makes shure that widget pkgs end up in the same dir as non widgets
# This makes sure that widget pkgs end up in the same dir as non widgets
if [[ $MODULE_BASENAME = "centreon-widget"* ]]; then
find / -name "*centreon-widget*.deb" -exec mv {} ../../ \;
fi
Expand Down
3 changes: 1 addition & 2 deletions .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ runs:

MAJOR_LEFT=$( echo $MAJOR_VERSION | cut -d "." -f1 )
MAJOR_RIGHT=$( echo $MAJOR_VERSION | cut -d "-" -f1 | cut -d "." -f2 )
BUMP_MAJOR_RIGHT=$(( MAJOR_RIGHT_PART + 1 ))
if [ "$MAJOR_RIGHT" = "04" ]; then
BUMP_MAJOR_LEFT="$MAJOR_LEFT"
BUMP_MAJOR_RIGHT="10"
Expand Down Expand Up @@ -115,5 +114,5 @@ runs:
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: ${{ inputs.arch != '' && format('packages-{0}-{1}', inputs.distrib, inputs.arch) || format('packages-{0}', inputs.distrib) }}
path: ./*.${{ inputs.package_extension}}
path: ./*.${{ inputs.package_extension }}
retention-days: 1
2 changes: 1 addition & 1 deletion .github/docker/Dockerfile.centreon-collect-alma8
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ baseurl=https://repo.goreleaser.com/yum/
enabled=1
gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo

curl -LsS "https://r.mariadb.com/downloads/mariadb_repo_setup" | bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5"
curl -LsS "https://r.mariadb.com/downloads/mariadb_repo_setup" | bash -s -- --os-type=rhel --os-version=8 --mariadb-server-version="mariadb-10.5" --skip-maxscale
dnf install -y cmake \
gcc \
gcc-c++ \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
spec_file: gorgone/packaging/centreon-gorgone.spectemplate
package_extension: ${{ matrix.package_extension }}
image_name: ${{ matrix.image }}
module_name: centreon-gorgone
module_name: gorgone
major_version: ${{ needs.get-version.outputs.major_version }}
minor_version: ${{ needs.get-version.outputs.minor_version }}
release: ${{ needs.get-version.outputs.release }}
Expand Down
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MAJOR=23.04
MINOR=14
MINOR=15
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ endif()
# Version.
set(COLLECT_MAJOR 23)
set(COLLECT_MINOR 04)
set(COLLECT_PATCH 14)
set(COLLECT_PATCH 15)
set(COLLECT_VERSION "${COLLECT_MAJOR}.${COLLECT_MINOR}.${COLLECT_PATCH}")
add_definitions(-DCENTREON_CONNECTOR_VERSION=\"${COLLECT_VERSION}\")

Expand Down
2 changes: 1 addition & 1 deletion gorgone/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MINOR=15
MINOR=16
9 changes: 5 additions & 4 deletions gorgone/packaging/centreon-gorgone.spectemplate
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
%define selinuxdevel %{_datadir}/selinux/devel

Name: centreon-gorgone
Version: 23.04.15
Version: 23.04.16
Release: %{PACKAGE_RELEASE}%{?dist}
Summary: Perl daemon task handlers
Group: Applications/System
License: Apache-2.0
URL: http://www.centreon.com
Source0: %{name}-%{version}.tar.gz
Source0: gorgone-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/gorgone-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: perl-devel

Expand Down Expand Up @@ -43,6 +43,7 @@ Requires: perl(Clone)
Requires: perl(Sys::Syslog)
Requires: perl(DateTime)
Requires: perl(Try::Tiny)
Requires: perl(lib)
Requires: tar
AutoReqProv: no

Expand Down Expand Up @@ -71,7 +72,7 @@ Requires: centreon-common-selinux
SElinux context for centreon-gorgoned.

%prep
%setup -q -n %{name}-%{version}
%setup -q -n gorgone-%{version}

%build

Expand Down
6 changes: 3 additions & 3 deletions gorgone/packaging/debian/centreon-gorgone.install
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ gorgone/class/* usr/share/perl5/gorgone/class
gorgone/modules/* usr/share/perl5/gorgone/modules
gorgone/standard/* usr/share/perl5/gorgone/standard

packaging/action.yaml => etc/centreon-gorgone/config.d/39-action.yaml
config/systemd/gorgoned-service => lib/systemd/system/gorgoned.service
config/systemd/gorgoned-sysconfig => etc/default/gorgoned
packaging/action.yaml => /etc/centreon-gorgone/config.d/39-action.yaml
config/systemd/gorgoned-service => /lib/systemd/system/gorgoned.service
config/systemd/gorgoned-sysconfig => /etc/default/gorgoned
3 changes: 2 additions & 1 deletion gorgone/packaging/debian/control
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: centreon-gorgone
Source: gorgone
Section: net
Priority: optional
Maintainer: Centreon <[email protected]>
Expand Down Expand Up @@ -39,6 +39,7 @@ Depends:
libev-perl,
libzmq-ffi-perl,
libclone-choose-perl,
perl-base,
sudo,
${shlibs:Depends},
${misc:Depends}
Expand Down
Loading