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 d64cbb8
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions rabbitmq/config/plugins/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,13 @@ 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 d64cbb8

Please sign in to comment.