FAQ
Any idea why the setup-rabbit: cmd.script: continues to be run even though
I have the creates clause?

Thanks in advance for any help! :)

# ~~~
# Installs and watches rabbitmq

rabbitmq_deb:
   pkgrepo.managed:
     - name: deb http://www.rabbitmq.com/debian/ testing main
     - keyid: 056E8E56
     - keyserver: pgp.mit.edu
     - require_in:
       - pkg: rabbitmq-server

rabbitmq-server:
   pkg:
     - installed
     - name: rabbitmq-server
   service:
     - running
     - enable: true
     - watch:
       - pkg: rabbitmq-server

setup-rabbit:
   cmd.script:
     - require:
       - pkg: rabbitmq-server
     - source: salt://cloud-local/scripts/setup-rabbit
     - user: root
     - group: root
     - shell: /bin/bash
     - creates: /etc/salt/state/have-setup-rabbit

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
groupsalt-users @
postedJul 9, '14 at 12:40a
activeJul 9, '14 at 3:52p
posts6
users3

People

Translate

site design / logo © 2022 Grokbase