Skip to content

Commit

Permalink
fix: recursive requisite rabbitmqadmin with latest salt builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainfaivre committed Jan 11, 2024
1 parent 84380ad commit c7f65dd
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions rabbitmq/config/plugins/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,15 @@ rabbitmq-config-plugins-enabled-{{ name }}-{{ plugin }}:
rabbitmq-config-plugins-{{ name }}-rabbitmqadmin-install:
cmd.run:
- name : curl -k -L http://127.0.0.1:15672/cli/rabbitmqadmin -o /usr/local/sbin/rabbitmqadmin
- unless: test -x /usr/local/sbin/rabbitmqadmin
{%- set rabbitmqadmin = "/usr/local/sbin/rabbitmqadmin" %}
- name: >
curl -k -L http://127.0.0.1:15672/cli/rabbitmqadmin -o {{ rabbitmqadmin }}
&& chown root:{{ rabbitmq.rootgroup }} {{ rabbitmqadmin }}
&& chmod 755 {{ rabbitmqadmin }}
- unless: test -x {{ rabbitmqadmin }}
- onlyif: /usr/sbin/rabbitmq-plugins --node {{ name }} is_enabled rabbitmq_management
- require:
- sls: {{ sls_service_running }}
file.managed:
- name: /usr/local/sbin/rabbitmqadmin
- user: root
- force: false
- replace: false
- group: {{ rabbitmq.rootgroup }}
- mode: 755
- require:
- cmd : rabbitmq-config-plugins-{{ name }}-rabbitmqadmin-install
{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit c7f65dd

Please sign in to comment.