mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
fix(vmware-sdk): remove perl-vmware-sdk workflow (#5585)
Refs: CTOR-342
This commit is contained in:
parent
db81938e6c
commit
5250f05059
213
.github/workflows/perl-vmware-vsphere.yml
vendored
213
.github/workflows/perl-vmware-vsphere.yml
vendored
@ -1,213 +0,0 @@
|
|||||||
name: perl-vmware-vsphere
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'dependencies/perl-vmware-vsphere/**'
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- 'dependencies/perl-vmware-vsphere/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
get-environment:
|
|
||||||
uses: ./.github/workflows/get-environment.yml
|
|
||||||
with:
|
|
||||||
version_file: connectors/vmware/src/centreon/script/centreon_vmware.pm
|
|
||||||
|
|
||||||
get-sources:
|
|
||||||
needs: [get-environment]
|
|
||||||
if: |
|
|
||||||
needs.get-environment.outputs.skip_workflow == 'false' &&
|
|
||||||
needs.get-environment.outputs.stability != 'stable'
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: Download vsphere cli sources
|
|
||||||
run: |
|
|
||||||
wget https://gitlab.labexposed.com/centreon-lab/perl-VMware-vSphere/-/raw/master/storage/VMware-vSphere-Perl-SDK-7.0.0-17698549.x86_64.tar.gz
|
|
||||||
tar zxf VMware-vSphere-Perl-SDK-7.0.0-17698549.x86_64.tar.gz
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Build vsphere cli sources
|
|
||||||
run: |
|
|
||||||
cd vmware-vsphere-cli-distrib
|
|
||||||
perl Makefile.PL
|
|
||||||
sudo make pure_install
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Cache vsphere cli sources
|
|
||||||
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
||||||
with:
|
|
||||||
path: vmware-vsphere-cli-distrib
|
|
||||||
key: ${{ github.sha }}-${{ github.run_id }}-sources-perl-vmware-vsphere
|
|
||||||
|
|
||||||
package:
|
|
||||||
needs: [get-environment, get-sources]
|
|
||||||
if: |
|
|
||||||
needs.get-environment.outputs.skip_workflow == 'false' &&
|
|
||||||
needs.get-environment.outputs.stability != 'stable'
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- package_extension: rpm
|
|
||||||
image: packaging-plugins-alma8
|
|
||||||
distrib: el8
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: rpm
|
|
||||||
image: packaging-plugins-alma9
|
|
||||||
distrib: el9
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: deb
|
|
||||||
image: packaging-plugins-bullseye
|
|
||||||
distrib: bullseye
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: deb
|
|
||||||
image: packaging-plugins-bookworm
|
|
||||||
distrib: bookworm
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: deb
|
|
||||||
image: packaging-plugins-jammy
|
|
||||||
distrib: jammy
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: deb
|
|
||||||
image: packaging-plugins-noble
|
|
||||||
distrib: noble
|
|
||||||
runner: ubuntu-22.04
|
|
||||||
arch: amd64
|
|
||||||
- package_extension: deb
|
|
||||||
image: packaging-plugins-bullseye-arm64
|
|
||||||
distrib: bullseye
|
|
||||||
runner: centreon-collect-arm64
|
|
||||||
arch: arm64
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.runner }}
|
|
||||||
|
|
||||||
container:
|
|
||||||
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
|
|
||||||
credentials:
|
|
||||||
username: ${{ secrets.HARBOR_CENTREON_PULL_USERNAME }}
|
|
||||||
password: ${{ secrets.HARBOR_CENTREON_PULL_TOKEN }}
|
|
||||||
|
|
||||||
name: package ${{ matrix.distrib }} ${{ matrix.arch }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout sources
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
|
|
||||||
- name: Import source files
|
|
||||||
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
|
||||||
with:
|
|
||||||
path: vmware-vsphere-cli-distrib
|
|
||||||
key: ${{ github.sha }}-${{ github.run_id }}-sources-perl-vmware-vsphere
|
|
||||||
fail-on-cache-miss: true
|
|
||||||
|
|
||||||
- name: Set paths according to distrib
|
|
||||||
run: |
|
|
||||||
PERL_VERSION=$(perl -E "say $^V" | sed -E "s/v([0-9]+\.[0-9]+).+/\1/g")
|
|
||||||
|
|
||||||
echo "Perl version is $PERL_VERSION"
|
|
||||||
|
|
||||||
if [[ "${{ matrix.package_extension }}" == "deb" ]]; then
|
|
||||||
if [ "${{ matrix.arch }}" = "amd64" ]; then
|
|
||||||
PERL_VENDORARCH="/usr/lib/x86_64-linux-gnu/perl/$PERL_VERSION"
|
|
||||||
else
|
|
||||||
PERL_VENDORARCH="/usr/lib/aarch64-linux-gnu/perl/$PERL_VERSION"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ "${{ matrix.distrib }}" = "el8" ]; then
|
|
||||||
PERL_VENDORARCH="/usr/local/lib64/perl5"
|
|
||||||
else
|
|
||||||
PERL_VENDORARCH="/usr/local/lib64/perl5/$PERL_VERSION"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
sed -i "s#@PERL_VENDORARCH@#$PERL_VENDORARCH#g" dependencies/perl-vmware-vsphere/packaging/perl-vmware-vsphere.yaml
|
|
||||||
|
|
||||||
cat dependencies/perl-vmware-vsphere/packaging/perl-vmware-vsphere.yaml
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Package
|
|
||||||
uses: ./.github/actions/package-nfpm
|
|
||||||
with:
|
|
||||||
nfpm_file_pattern: "dependencies/perl-vmware-vsphere/packaging/perl-vmware-vsphere.yaml"
|
|
||||||
distrib: ${{ matrix.distrib }}
|
|
||||||
package_extension: ${{ matrix.package_extension }}
|
|
||||||
arch: ${{ matrix.arch }}
|
|
||||||
commit_hash: ${{ github.sha }}
|
|
||||||
version: "7.0.1"
|
|
||||||
release: "17698549"
|
|
||||||
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}-${{ matrix.arch }}
|
|
||||||
rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }}
|
|
||||||
rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }}
|
|
||||||
rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }}
|
|
||||||
stability: ${{ needs.get-environment.outputs.stability }}
|
|
||||||
|
|
||||||
deliver-packages:
|
|
||||||
needs: [get-environment, package]
|
|
||||||
if: |
|
|
||||||
needs.get-environment.outputs.skip_workflow == 'false' &&
|
|
||||||
(contains(fromJson('["testing", "unstable"]'), needs.get-environment.outputs.stability) || ( needs.get-environment.outputs.stability == 'stable' && github.event_name != 'workflow_dispatch')) &&
|
|
||||||
! cancelled() &&
|
|
||||||
! contains(needs.*.result, 'failure') &&
|
|
||||||
! contains(needs.*.result, 'cancelled')
|
|
||||||
runs-on: ubuntu-24.04
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- distrib: el8
|
|
||||||
package_extension: rpm
|
|
||||||
arch: amd64
|
|
||||||
- distrib: el9
|
|
||||||
package_extension: rpm
|
|
||||||
arch: amd64
|
|
||||||
- distrib: bullseye
|
|
||||||
package_extension: deb
|
|
||||||
arch: amd64
|
|
||||||
- distrib: bullseye
|
|
||||||
package_extension: deb
|
|
||||||
arch: arm64
|
|
||||||
- distrib: bookworm
|
|
||||||
package_extension: deb
|
|
||||||
arch: amd64
|
|
||||||
- distrib: jammy
|
|
||||||
package_extension: deb
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
name: deliver ${{ matrix.distrib }} ${{ matrix.arch }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout sources
|
|
||||||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
|
||||||
|
|
||||||
- name: Delivery
|
|
||||||
uses: ./.github/actions/package-delivery
|
|
||||||
with:
|
|
||||||
module_name: perl-vmware-vsphere-${{ matrix.arch }}
|
|
||||||
distrib: ${{ matrix.distrib }}
|
|
||||||
arch: ${{ matrix.arch }}
|
|
||||||
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}-${{ matrix.arch }}
|
|
||||||
stability: ${{ needs.get-environment.outputs.stability }}
|
|
||||||
release_type: ${{ needs.get-environment.outputs.release_type }}
|
|
||||||
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
set-skip-label:
|
|
||||||
needs: [get-environment, deliver-packages]
|
|
||||||
if: |
|
|
||||||
needs.get-environment.outputs.skip_workflow == 'false' &&
|
|
||||||
! cancelled() &&
|
|
||||||
! contains(needs.*.result, 'failure') &&
|
|
||||||
! contains(needs.*.result, 'cancelled')
|
|
||||||
uses: ./.github/workflows/set-pull-request-skip-label.yml
|
|
@ -86,26 +86,32 @@ scripts:
|
|||||||
overrides:
|
overrides:
|
||||||
rpm:
|
rpm:
|
||||||
depends:
|
depends:
|
||||||
|
- perl(Class::MethodMaker)
|
||||||
- perl(Crypt::OpenSSL::AES)
|
- perl(Crypt::OpenSSL::AES)
|
||||||
|
- perl(Crypt::SSLeay)
|
||||||
- perl(IO::Socket::INET6)
|
- perl(IO::Socket::INET6)
|
||||||
- perl(JSON::XS)
|
- perl(JSON::XS)
|
||||||
- perl(LWP::Protocol::https)
|
- perl(LWP::Protocol::https)
|
||||||
|
- perl(SOAP::Lite)
|
||||||
- perl(Text::Template)
|
- perl(Text::Template)
|
||||||
|
- perl(UUID)
|
||||||
- perl(ZMQ::Constants)
|
- perl(ZMQ::Constants)
|
||||||
- perl(ZMQ::LibZMQ4)
|
- perl(ZMQ::LibZMQ4)
|
||||||
- perl-Net-Curl
|
- perl-Net-Curl
|
||||||
- perl-VMware-vSphere >= 5.1
|
|
||||||
deb:
|
deb:
|
||||||
depends:
|
depends:
|
||||||
|
- libclass-methodmaker-perl
|
||||||
- libcrypt-openssl-aes-perl
|
- libcrypt-openssl-aes-perl
|
||||||
|
- libcrypt-ssleay-perl
|
||||||
- libio-socket-inet6-perl
|
- libio-socket-inet6-perl
|
||||||
- libjson-xs-perl
|
- libjson-xs-perl
|
||||||
- liblwp-protocol-https-perl
|
- liblwp-protocol-https-perl
|
||||||
- libnet-curl-perl
|
- libnet-curl-perl
|
||||||
|
- libsoap-lite-perl
|
||||||
- libtext-template-perl
|
- libtext-template-perl
|
||||||
|
- libuuid-perl
|
||||||
- libzmq-constants-perl
|
- libzmq-constants-perl
|
||||||
- libzmq-libzmq4-perl
|
- libzmq-libzmq4-perl
|
||||||
- perl-vmware-vsphere
|
|
||||||
|
|
||||||
rpm:
|
rpm:
|
||||||
signature:
|
signature:
|
||||||
|
@ -1,59 +0,0 @@
|
|||||||
name: "perl-VMware-vSphere"
|
|
||||||
arch: "${ARCH}"
|
|
||||||
platform: "linux"
|
|
||||||
version_schema: "none"
|
|
||||||
version: "${VERSION}"
|
|
||||||
release: "${RELEASE}${DIST}"
|
|
||||||
section: "default"
|
|
||||||
priority: "optional"
|
|
||||||
maintainer: "Centreon <contact@centreon.com>"
|
|
||||||
description: |
|
|
||||||
The vSphere SDK for Perl is a client-side Perl framework that provides an easy-to-use scripting interface to the vSphere API.
|
|
||||||
Administrators and developers who are familiar with Perl can use the vSphere SDK for Perl to automate a wide variety of administrative, provisioning, and monitoring tasks in the vSphere environment.
|
|
||||||
The vSphere SDK for Perl includes ready-to-use utility applications, which you can immediately put to use in your virtual datacenter.
|
|
||||||
The vSphere SDK for Perl installation includes the WS-Management Perl Library, which allows you to write scripts that retrieve CIM data from the ESX host using CIMOM, a service that provides standard CIM management functions over a WBEM (Web-Based Enterprise Management).
|
|
||||||
You can use the SDK to manage ESX 3.0.x, ESX/ESXi 3.5, ESX/ESXi 4.0, ESX/ESXi 4.1, ESXi 5.0, vCenter Server 2.5, vCenter Server 4.0, vCenter Server 4.1, and vCenter Server 5.0.
|
|
||||||
Commit: @COMMIT_HASH@
|
|
||||||
vendor: "vmware"
|
|
||||||
homepage: "https://vmware.com"
|
|
||||||
license: "GPLv2+"
|
|
||||||
|
|
||||||
contents:
|
|
||||||
- src: "../../../vmware-vsphere-cli-distrib/VMware"
|
|
||||||
dst: "@PERL_VENDORARCH@/VMware"
|
|
||||||
|
|
||||||
- src: "../../../vmware-vsphere-cli-distrib/WSMan"
|
|
||||||
dst: "@PERL_VENDORARCH@/WSMan"
|
|
||||||
|
|
||||||
overrides:
|
|
||||||
rpm:
|
|
||||||
provides:
|
|
||||||
- perl(VMware::VIRuntime)
|
|
||||||
depends:
|
|
||||||
- perl-XML-LibXML >= 1.58
|
|
||||||
- perl-libwww-perl >= 5.8.05
|
|
||||||
- perl-SOAP-Lite >= 0.67
|
|
||||||
- perl-UUID >= 0.03
|
|
||||||
- perl-Class-MethodMaker >= 2.08
|
|
||||||
deb:
|
|
||||||
depends:
|
|
||||||
- libstat-lsmode-perl
|
|
||||||
- libclass-methodmaker-perl
|
|
||||||
- libuuid-perl
|
|
||||||
- libconvert-binhex-perl
|
|
||||||
- libemail-date-format-perl
|
|
||||||
- libio-sessiondata-perl
|
|
||||||
- libmime-lite-perl
|
|
||||||
- libmime-types-perl
|
|
||||||
- libmime-tools-perl
|
|
||||||
- libmailtools-perl
|
|
||||||
- libnet-smtp-ssl-perl
|
|
||||||
- libsoap-lite-perl
|
|
||||||
- libtext-template-perl
|
|
||||||
- libxml-libxml-perl
|
|
||||||
|
|
||||||
rpm:
|
|
||||||
compression: zstd
|
|
||||||
signature:
|
|
||||||
key_file: ${RPM_SIGNING_KEY_FILE}
|
|
||||||
key_id: ${RPM_SIGNING_KEY_ID}
|
|
Loading…
x
Reference in New Issue
Block a user