Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use custom list inside enabled_plugins file #916

Closed
enothen opened this issue Nov 22, 2022 · 1 comment · Fixed by #917
Closed

Unable to use custom list inside enabled_plugins file #916

enothen opened this issue Nov 22, 2022 · 1 comment · Fixed by #917

Comments

@enothen
Copy link

enothen commented Nov 22, 2022

The current template templates/enabled_plugins.erb allows a static list of plugins to be enabled, and nothing else outside of what the template covers:

% This file managed by Puppet
% Template Path: <%= @module_name %>/templates/enabled_plugins
<%- @_plugins = [] -%>
<%- if @admin_enable or @management_enable -%>
  <%- @_plugins << 'rabbitmq_management' -%>
<%- end -%>
<%- if @stomp_ensure -%>
  <%- @_plugins << 'rabbitmq_stomp' -%>
<%- end -%>
<%- if @ldap_auth -%>
  <%- @_plugins << 'rabbitmq_auth_backend_ldap' -%>
<%- end -%>
<%- if @config_shovel -%>
  <%- @_plugins << 'rabbitmq_shovel' -%>
  <%- if @admin_enable or @management_enable -%>
    <%- @_plugins << 'rabbitmq_shovel_management' -%>
  <%- end -%>
<%- end -%>
[<%= @_plugins.join(',')%>].

There's no way to enable rabbitmq_prometheus, or any other plugin when using rabbitmq::use_config_file_for_plugins: True.

@enothen enothen changed the title Unable to custom list when using config file for plugins Unable to use custom list inside enabled_plugins file Nov 22, 2022
@wyardley
Copy link
Contributor

Closed via #917

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants