Skip to content

Switch FOREMAN_PLUGINS to the short names#26

Draft
ekohl wants to merge 1 commit intotheforeman:masterfrom
ekohl:switch-to-foreman-plugin-provides
Draft

Switch FOREMAN_PLUGINS to the short names#26
ekohl wants to merge 1 commit intotheforeman:masterfrom
ekohl:switch-to-foreman-plugin-provides

Conversation

@ekohl
Copy link
Copy Markdown
Member

@ekohl ekohl commented Apr 13, 2026

This relies on the foreman-plugin-$PLUGIN Provides statement that the packages should all have.

This relies on the foreman-plugin-$PLUGIN Provides statement that the
packages should all have.
echo $PLUGIN; \
dnf install --nodocs -y "rubygem($PLUGIN)"; \
dnf install --nodocs -y "foreman-plugin-$PLUGIN"; \
echo "gem '$PLUGIN' if ENV.fetch('FOREMAN_ENABLED_PLUGINS', '').split.include?('$PLUGIN') || ENV.fetch('FOREMAN_ENABLED_PLUGINS', nil).nil?" > /usr/share/foreman/bundler.d/$PLUGIN.rb; \
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized this won't work because it relied on the full gem name. We'd need to include this bit in the plugin template.

@ekohl ekohl marked this pull request as draft April 13, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant