Update build/galaxy metadata

Assisted-by: Pi:qwen3.8-flash-next-it
This commit is contained in:
Brett Weir 2026-09-25 01:41:58 -07:00
commit 37a91bd39b
2 changed files with 47 additions and 4 deletions

View file

@ -1,19 +1,31 @@
namespace: fedoraserver
name: general
# this version is injected at build time by CI
version: 0.0.0
readme: README.md
authors:
- Fedora Server Working Group <server@lists.fedoraproject.org>
description: Ansible collection providing roles for Fedora Server Edition supported services.
license:
- GPL-3.0-or-later
tags:
- linux
- infrastructure
dependencies:
community.general: ">=1.0.0"
ansible.posix: ">=1.0.0"
repository: https://forge.fedoraproject.org/server/ansible-support
community.general: ">=10.0.0"
ansible.posix: ">=2.0.0"
repository: https://forge.fedoraproject.org/server/ansible-collection-fedoraserver-general
issues: https://forge.fedoraproject.org/server/tickets
build_ignore:
- .git
- .gitignore

View file

@ -1,7 +1,38 @@
NAMESPACE := fedoraserver
NAME := general
ARTIFACT := $(NAMESPACE)-$(NAME)
# The release version is supplied by the caller, NOT read from galaxy.yml.
# galaxy.yml only carries a placeholder; CI stamps the real version in at build
# time. Use: VERSION=1.2.3 make build
VERSION ?= 0.0.0
# Reject anything that isn't a plain dotted version before it reaches sed, which
# would otherwise fail with a confusing "unknown option to s" error.
ifeq ($(shell printf '%s' '$(VERSION)' | grep -cE '^[0-9]+\.[0-9]+\.[0-9]+$$'), 0)
$(error VERSION='$(VERSION)' is not a valid X.Y.Z version)
endif
all: install lint
install:
ansible-galaxy install -r requirements.yml
ansible-galaxy collection install -r requirements.yml
lint:
ansible-lint
build:
@sed -i 's/^[[:space:]]*version:.*/version: $(VERSION)/' galaxy.yml
ansible-galaxy collection build --output-path build
clean:
rm -rf build
rm -f $(ARTIFACT)-*.tar.gz
# Print the collection identity, e.g. for RPM spec / packager cross-checks.
info:
@echo "collection: $(NAMESPACE).$(NAME)"
@echo "version: $(VERSION)"
@echo "rpm: ansible-collection-$(NAMESPACE)-$(NAME)"
.PHONY: all install lint build clean info