-
-
Save waynegemmell/6a0f7776a90813f266db8036b11c15e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This works. | |
{% set parts = grains['host'].split('-') %} | |
{% if parts[1] == 'live' %} | |
branch: 'master' | |
{% elif parts[1] == 'dev' %} | |
branch: 'Development' | |
{% elif parts[1] == 'beta' %} | |
branch: 'Beta' | |
{% else %} | |
branch: {{ parts[1] }} | |
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The minion function caused an exception: Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1470, in _thread_return | |
return_data = executor.execute() | |
File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 28, in execute | |
return self.func(*self.args, **self.kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 593, in apply_ | |
return highstate(**kwargs) | |
File "/usr/lib/python2.7/dist-packages/salt/modules/state.py", line 878, in highstate | |
err += __pillar__['_errors'] | |
File "/usr/lib/python2.7/dist-packages/salt/utils/context.py", line 227, in __getitem__ | |
return self._dict()[key] | |
KeyError: '_errors' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monit: | |
modules: | |
submission_listener: | |
process: | |
with: | |
pidfile: /var/run/submission_listener.pid | |
config: | |
group: php | |
{% set parts = grains['host'].split('-') %} | |
{% if parts[1] == 'live' %} | |
start: "/sbin/start-stop-daemon --start --background --make-pidfile --chuid php:developers --pidfile /var/run/submission_listener.pid --exec /usr/bin/php /var/local/connect/MMS/daemon/submissionListener.php debug" | |
{% else %} | |
start: "/sbin/start-stop-daemon --start --background --make-pidfile --chuid php:developers --pidfile /var/run/submission_listener.pid --exec /usr/bin/php /var/local/connect/MMS/daemon/submissionListener.php debug test" | |
{% endif %} | |
stop: "/sbin/start-stop-daemon --stop --pidfile /var/run/submission_listener.pid" | |
message_dispatcher: | |
process: | |
with: | |
pidfile: /var/run/message_dispatcher.pid | |
config: | |
group: php | |
start: "/sbin/start-stop-daemon --start --background --make-pidfile --chuid php:developers --pidfile /var/run/message_dispatcher.pid --exec /usr/bin/php /var/local/connect/MMS/daemon/messageDispatcher.php debug test" | |
stop: "/sbin/start-stop-daemon --stop --pidfile /var/run/message_dispatcher.pid" | |
dlr_dispatcher: | |
process: | |
with: | |
pidfile: /var/run/dlr_dispatcher.pid | |
config: | |
group: php | |
start: "/sbin/start-stop-daemon --start --background --make-pidfile --chuid php:developers --pidfile /var/run/dlr_dispatcher.pid --exec /usr/bin/php var/local/connect/MMS/daemon/mms_dlr_http_daemon.php debug" | |
stop: "/sbin/start-stop-daemon --stop --pidfile /var/run/dlr_dispatcher.pid" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment