From 47d866cf6c82ebe38050cf3cbce952b5a501af63 Mon Sep 17 00:00:00 2001 From: Owen-sz Date: Sun, 14 Jun 2026 05:12:06 -0500 Subject: [PATCH] add: ansible-collection-onepassword-connect and ansible-collections/ folder Signed-off-by: Owen-sz --- .../anda.hcl | 6 +++ ...ansible-onepasswordconnect-collection.spec | 52 +++++++++++++++++++ .../doc-files.patch | 10 ++++ .../update.rhai | 1 + 4 files changed, 69 insertions(+) create mode 100644 anda/tools/ansible-collections/ansible-onepasswordconnect-collection/anda.hcl create mode 100644 anda/tools/ansible-collections/ansible-onepasswordconnect-collection/ansible-onepasswordconnect-collection.spec create mode 100644 anda/tools/ansible-collections/ansible-onepasswordconnect-collection/doc-files.patch create mode 100644 anda/tools/ansible-collections/ansible-onepasswordconnect-collection/update.rhai diff --git a/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/anda.hcl b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/anda.hcl new file mode 100644 index 0000000000..c6d5335cfb --- /dev/null +++ b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "ansible-onepasswordconnect-collection.spec" + } +} diff --git a/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/ansible-onepasswordconnect-collection.spec b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/ansible-onepasswordconnect-collection.spec new file mode 100644 index 0000000000..8fcfa7267f --- /dev/null +++ b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/ansible-onepasswordconnect-collection.spec @@ -0,0 +1,52 @@ +%if %{defined fedora} +%bcond_without tests +%else +%bcond_with tests +%endif + +Name: ansible-collection-onepassword-connect +Version: 2.4.0 +Release: 1%{?dist} +Summary: Contains modules that interact with your 1Password Connect deployment +License: GPL-3.0-or-later +URL: %{ansible_collection_url onepassword connect} +Source0: https://github.com/1Password/ansible-onepasswordconnect-collection/archive/refs/tags/v%{version}.tar.gz +Patch0: doc-files.patch +Packager: Owen Zimmerman + +BuildRequires: ansible-packaging +%if %{with tests} +BuildRequires: ansible-packaging-tests +%endif + +BuildArch: noarch + +%description +The 1Password Connect collection contains modules that interact +with your 1Password Connect deployment. The modules communicate +with the 1Password Connect API to support Vault Item +create/read/update/delete operations. + +%prep +%autosetup -n ansible-onepasswordconnect-collection-%{version} -p1 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Ansible_collections/#_shebangs +find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + + +%build +%ansible_collection_build + +%install +%ansible_collection_install + +%if %{with tests} +%check +%ansible_test_unit +%endif + +%files -f %{ansible_collection_filelist} +%license LICENSE.md +%doc CHANGELOG.md README.md USAGEGUIDE.md CHANGELOG.rst + +%changelog +* Sun Jun 14 2026 Owen Zimmerman - 2.4.0-1 +- Initial commit diff --git a/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/doc-files.patch b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/doc-files.patch new file mode 100644 index 0000000000..140bef5fe2 --- /dev/null +++ b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/doc-files.patch @@ -0,0 +1,10 @@ +diff --git a/galaxy.yml b/galaxy.yml +index f068ebc..6ef0f71 100644 +--- a/galaxy.yml ++++ b/galaxy.yml +@@ -31,4 +31,4 @@ issues: https://github.com/1Password/ansible-onepasswordconnect-collection/issue + + # A list of file glob-like patterns used to filter any files or directories that should not be included in the build + # artifact. +-build_ignore: [scripts, .venv, venv, .*, tests] ++build_ignore: [.md, .rst, scripts, .venv, venv, .*, tests] diff --git a/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/update.rhai b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/update.rhai new file mode 100644 index 0000000000..a5f027d6da --- /dev/null +++ b/anda/tools/ansible-collections/ansible-onepasswordconnect-collection/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("1Password/ansible-onepasswordconnect-collection"));