diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d5e3200 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rhc-worker-playbook-0.1.5.tar.gz diff --git a/.rhc-worker-playbook.metadata b/.rhc-worker-playbook.metadata new file mode 100644 index 0000000..642e56f --- /dev/null +++ b/.rhc-worker-playbook.metadata @@ -0,0 +1 @@ +7c24c708337f9ddc6aa9d8295aba78a4b03b7688 SOURCES/rhc-worker-playbook-0.1.5.tar.gz diff --git a/SPECS/rhc-worker-playbook.spec b/SPECS/rhc-worker-playbook.spec new file mode 100644 index 0000000..898bd61 --- /dev/null +++ b/SPECS/rhc-worker-playbook.spec @@ -0,0 +1,63 @@ +%define debug_package %{nil} + +Name: rhc-worker-playbook +Summary: Red Hat connect worker for launching Ansible Runner +Version: 0.1.5 +Release: 1%{?dist} +License: GPLv2+ +Source: rhc-worker-playbook-0.1.5.tar.gz + +ExclusiveArch: %{go_arches} + +%{?__python3:Requires: %{__python3}} +Requires: insights-client +Requires: python3dist(requests) +BuildRequires: rhc +BuildRequires: pkgconfig +BuildRequires: python3-devel +BuildRequires: python3dist(pip) +BuildRequires: python3dist(wheel) +BuildRequires: openssl-devel +BuildRequires: c-ares-devel +BuildRequires: zlib-devel +BuildRequires: python3dist(cython) + +%description +Python-based worker for Red Hat connect, used to launch Ansible playbooks via Ansible Runner. + +%prep +%setup -q + +%build +export GRPC_PYTHON_BUILD_WITH_CYTHON=True +export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True +export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True +export GRPC_PYTHON_BUILD_SYSTEM_CARES=True +export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=True +%define rhc_config_dir $(pkg-config rhc --variable workerconfdir) + +%{__make} PREFIX=%{_prefix} LIBDIR=%{_libdir} PYTHON_PKGDIR=%{python3_sitelib} CONFIG_DIR=%{rhc_config_dir} installed-lib-dir +%{make_build} build + +%install +%{make_install} PREFIX=%{_prefix} LIBDIR=%{_libdir} CONFIG_DIR=%{rhc_config_dir} PYTHON_PKGDIR=%{python3_sitelib} + +%files +%{_libexecdir}/rhc/rhc-worker-playbook.worker +%{python3_sitelib}/rhc_worker_playbook/ +%{python3_sitelib}/rhc_worker_playbook*.egg-info/ +%{_libdir}/rhc-worker-playbook/ +%config %{_sysconfdir}/rhc/workers/rhc-worker-playbook.toml + +%doc + +%changelog +* Mon Apr 19 2021 Jeremy Crafts - 0.1.5-1 +- Changes to playbook validation logic +- Enhancements for logging to rhcd +- Fix for subprocess environment + +* Thu Mar 25 2021 Jeremy Crafts - 0.1.4-1 +- Enhancements to playbook validation +- Fixes for regular execution status updates +- Configuration fixes