| |
@@ -181,7 +181,7 @@
|
| |
%global rolename18 vpn
|
| |
%deftag 18 1.2.1
|
| |
|
| |
- %global mainid 2dd50c8a16af647e4c7a768c481335e97735958a
|
| |
+ %global mainid faf1a88325996248df6f2820787297aff7405fe1
|
| |
Source: %{url}/auto-maintenance/archive/%{mainid}/auto-maintenance-%{mainid}.tar.gz
|
| |
Source1: %{archiveurl1}
|
| |
Source2: %{archiveurl2}
|
| |
@@ -233,6 +233,8 @@
|
| |
|
| |
# Requirements for galaxy_transform.py
|
| |
BuildRequires: python3
|
| |
+ # Requirements for release_collection.py
|
| |
+ BuildRequires: python-packaging
|
| |
%if 0%{?fedora} || 0%{?rhel} >= 8
|
| |
BuildRequires: python3dist(ruamel.yaml)
|
| |
|
| |
@@ -428,13 +430,15 @@
|
| |
./galaxy_transform.py "%{collection_namespace}" "%{collection_name}" "%{collection_version}" "Red Hat Enterprise Linux System Roles Ansible Collection" > galaxy.yml.tmp
|
| |
mv galaxy.yml.tmp galaxy.yml
|
| |
|
| |
+ includes=""
|
| |
for role in %{rolenames}; do
|
| |
- python3 lsr_role2collection.py --role "$role" --src-path "$role" \
|
| |
- --src-owner %{name} --subrole-prefix %{subrole_prefix} --dest-path .collections \
|
| |
- --readme lsr_role2collection/collection_readme.md \
|
| |
- --namespace %{collection_namespace} --collection %{collection_name}
|
| |
+ includes="$includes --include $role"
|
| |
done
|
| |
|
| |
+ python3 release_collection.py --galaxy-yml galaxy.yml --src-path $(pwd) \
|
| |
+ --dest-path $(pwd)/.collections $includes --force --no-update \
|
| |
+ --skip-git --skip-check --debug
|
| |
+
|
| |
%if 0%{?rhel}
|
| |
# Convert vendored plugins to FQCN for collection
|
| |
# ansible.netcommon:
|
| |
@@ -457,24 +461,6 @@
|
| |
.collections/ansible_collections/%{collection_namespace}/%{collection_name}/bindep.txt
|
| |
fi
|
| |
|
| |
- rm -f .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/sanity/ignore-2.9.txt
|
| |
- # Merge .sanity-ansible-ignore-2.9-ROLENAME.txt into tests/sanity/ignore-2.9.txt
|
| |
- mkdir -p .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/sanity
|
| |
- for role in %{rolenames}; do
|
| |
- if [ -f .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.sanity-ansible-ignore-2.9-"$role".txt ];
|
| |
- then
|
| |
- cat .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.sanity-ansible-ignore-2.9-"$role".txt \
|
| |
- >> .collections/ansible_collections/%{collection_namespace}/%{collection_name}/tests/sanity/ignore-2.9.txt
|
| |
- rm -f .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.sanity-ansible-ignore-*-"$role".txt
|
| |
- fi
|
| |
- done
|
| |
-
|
| |
- # removing dot files/dirs
|
| |
- rm -r .collections/ansible_collections/%{collection_namespace}/%{collection_name}/.[A-Za-z]*
|
| |
-
|
| |
- cp -p galaxy.yml lsr_role2collection/.ansible-lint \
|
| |
- .collections/ansible_collections/%{collection_namespace}/%{collection_name}
|
| |
-
|
| |
# Remove table of contents from logging README.md
|
| |
# It is not needed for html and AH/Galaxy
|
| |
sed -i -e 's/^\(## Table of Contents\)/## Background\n\1/' \
|
| |
Replace lsr_role2collection with release_collection to take advantage
of its generating associated files - .ansible-lint, ignore files for
ansible-test.
scratch build:
Replace lsr_role2collection with release_collection to take advantage