diff --git a/comps/comps-foreman-plugins-el9.xml b/comps/comps-foreman-plugins-el9.xml index cd235612ba..80fd4b2660 100644 --- a/comps/comps-foreman-plugins-el9.xml +++ b/comps/comps-foreman-plugins-el9.xml @@ -205,6 +205,7 @@ rubygem-smart_proxy_hdm rubygem-smart_proxy_monitoring rubygem-smart_proxy_omaha + rubygem-smart_proxy_openbolt rubygem-smart_proxy_openscap rubygem-smart_proxy_pulp rubygem-smart_proxy_realm_ad_plugin @@ -387,6 +388,7 @@ rubygem-smart_proxy_hdm-doc rubygem-smart_proxy_monitoring-doc rubygem-smart_proxy_omaha-doc + rubygem-smart_proxy_openbolt-doc rubygem-smart_proxy_openscap-doc rubygem-smart_proxy_pulp-doc rubygem-smart_proxy_realm_ad_plugin-doc diff --git a/package_manifest.yaml b/package_manifest.yaml index b270427e14..de4c279436 100644 --- a/package_manifest.yaml +++ b/package_manifest.yaml @@ -713,6 +713,7 @@ foreman_plugin_packages_tier2: rubygem-llhttp: {} rubygem-opennebula: {} rubygem-puppetdb_foreman: {} + rubygem-smart_proxy_openbolt: {} rubygem-treetop: {} fdi_plugin_packages: diff --git a/packages/plugins/rubygem-smart_proxy_openbolt/rubygem-smart_proxy_openbolt.spec b/packages/plugins/rubygem-smart_proxy_openbolt/rubygem-smart_proxy_openbolt.spec new file mode 100644 index 0000000000..0097910920 --- /dev/null +++ b/packages/plugins/rubygem-smart_proxy_openbolt/rubygem-smart_proxy_openbolt.spec @@ -0,0 +1,87 @@ +# template: smart_proxy_plugin +%global gem_name smart_proxy_openbolt +%global plugin_name openbolt + +%global foreman_proxy_min_version 1.24 +%global foreman_proxy_dir %{_datadir}/foreman-proxy +%global foreman_proxy_statedir %{_sharedstatedir}/foreman-proxy +%global foreman_proxy_bundlerd_dir %{foreman_proxy_dir}/bundler.d +%global foreman_proxy_settingsd_dir %{_sysconfdir}/foreman-proxy/settings.d + +Name: rubygem-%{gem_name} +Version: 0.1.0 +Release: 1%{?foremandist}%{?dist} +Summary: Smart Proxy plugin for OpenBolt integration +License: GPL-3.0-only +URL: https://github.com/overlookinfra/smart_proxy_openbolt +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem + +# start specfile generated dependencies +Requires: foreman-proxy >= %{foreman_proxy_min_version} +Requires: ruby >= 3.0 +BuildRequires: ruby >= 3.0 +BuildRequires: rubygems-devel +BuildArch: noarch +Provides: foreman-proxy-plugin-%{plugin_name} = %{version} +# end specfile generated dependencies + +%description +Uses the OpenBolt CLI tool to run tasks and plans in Foreman. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} + +%build +# Create the gem as gem install only works on a gem file +gem build ../%{gem_name}-%{version}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +# bundler file +mkdir -p %{buildroot}%{foreman_proxy_bundlerd_dir} +mv %{buildroot}%{gem_instdir}/bundler.d/%{plugin_name}.rb \ + %{buildroot}%{foreman_proxy_bundlerd_dir} + +# sample config +mkdir -p %{buildroot}%{foreman_proxy_settingsd_dir} +mv %{buildroot}%{gem_instdir}/settings.d/openbolt.yml \ + %{buildroot}%{foreman_proxy_settingsd_dir}/openbolt.yml + +%files +%dir %{gem_instdir} +%config(noreplace) %attr(0640, root, foreman-proxy) %{foreman_proxy_settingsd_dir}/openbolt.yml +%license %{gem_instdir}/LICENSE +%exclude %{gem_instdir}/bundler.d +%{gem_libdir} +%exclude %{gem_instdir}/settings.d +%{foreman_proxy_bundlerd_dir}/%{plugin_name}.rb +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md + +%changelog +* Mon Nov 10 11:39:32 CET 2025 Tim Meusel - 0.1.0-1 +- Update to 0.1.0 + +* Fri Nov 07 2025 Tim Meusel 0.0.1-1 +- Add rubygem-smart_proxy_openbolt generated by gem2rpm using the smart_proxy_plugin template + diff --git a/packages/plugins/rubygem-smart_proxy_openbolt/smart_proxy_openbolt-0.1.0.gem b/packages/plugins/rubygem-smart_proxy_openbolt/smart_proxy_openbolt-0.1.0.gem new file mode 120000 index 0000000000..46d75203bb --- /dev/null +++ b/packages/plugins/rubygem-smart_proxy_openbolt/smart_proxy_openbolt-0.1.0.gem @@ -0,0 +1 @@ +../../../.git/annex/objects/9m/XM/SHA256E-s25600--7e8265fecbbd2047cda393ee6956f5b5b8279e5de4ac63396e9dd22a92554172.0.gem/SHA256E-s25600--7e8265fecbbd2047cda393ee6956f5b5b8279e5de4ac63396e9dd22a92554172.0.gem \ No newline at end of file