feat: add OpenBao plugin RPMs for consul and nomad secrets engines
- Add openbao-plugin-secret-consul v0.1.0 RPM configuration - Add openbao-plugin-secret-nomad v0.1.4 RPM configuration - Add openbao-plugins v1.0.0 meta package that installs both plugins - Plugins install to /opt/openbao-plugins directory - Include pre-install scripts to create plugin directory - Support for EL8 and EL9 distributions
This commit is contained in:
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1,18 @@
|
||||
FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
|
||||
# Create output directory for RPMs
|
||||
RUN mkdir -p /app/dist
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
ARG PACKAGE_RELEASE
|
||||
ENV PACKAGE_RELEASE=${PACKAGE_RELEASE}
|
||||
ARG PACKAGE_VERSION
|
||||
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
||||
|
||||
# Copy resources from the context into the container
|
||||
COPY resources /app/resources
|
||||
|
||||
# Default command to build RPMs
|
||||
CMD /app/resources/build.sh
|
||||
@@ -0,0 +1,9 @@
|
||||
name: openbao-plugins
|
||||
release: 1
|
||||
version: 1.0.0
|
||||
github: openbao/openbao-plugins
|
||||
build:
|
||||
- distro: el/8
|
||||
image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest
|
||||
- distro: el/9
|
||||
image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# This is a meta package - no binaries to download
|
||||
# Build the RPM
|
||||
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm
|
||||
@@ -0,0 +1,30 @@
|
||||
# nfpm.yaml
|
||||
|
||||
name: openbao-plugins
|
||||
version: ${PACKAGE_VERSION}
|
||||
release: ${PACKAGE_RELEASE}
|
||||
arch: amd64
|
||||
platform: linux
|
||||
section: default
|
||||
priority: extra
|
||||
description: "Meta package that installs all OpenBao plugins"
|
||||
|
||||
maintainer: OpenBao Community
|
||||
homepage: https://github.com/openbao/openbao-plugins
|
||||
license: MPL-2.0
|
||||
|
||||
disable_globbing: false
|
||||
|
||||
replaces:
|
||||
- openbao-plugins
|
||||
|
||||
provides:
|
||||
- openbao-plugins
|
||||
|
||||
# Dependencies - this meta package pulls in all plugin packages
|
||||
depends:
|
||||
- openbao-plugin-secret-consul
|
||||
- openbao-plugin-secret-nomad
|
||||
|
||||
# No actual files in this meta package
|
||||
contents: []
|
||||
Reference in New Issue
Block a user