Skip to content

Instantly share code, notes, and snippets.

@buddyp450
Created September 17, 2015 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buddyp450/c935f536260d11a26243 to your computer and use it in GitHub Desktop.
Save buddyp450/c935f536260d11a26243 to your computer and use it in GitHub Desktop.
Strange sls config issue - spot the difference?
# works
test:
pkg.installed:
- name: elasticsearch
service.running:
- name: elasticsearch
- watch:
- file: /etc/elasticsearch/elasticsearch.yml
- file: /etc/security/limits.conf
# does not work
elasticsearch:
pkg.installed:
- name: elasticsearch
service.running:
- name: elasticsearch
- watch:
- file: /etc/elasticsearch/elasticsearch.yml
- file: /etc/security/limits.conf
# results of highstate for machine that has elasticsearch running
--
ID: test
Function: service.running
Name: elasticsearch
Result: True
Comment: The service elasticsearch is already running
Started: 09:18:02.998174
Duration: 42.376 ms
--
ID: elasticsearch
Function: service.running
Result: None
Comment: Service is set to be restarted
Started: 09:18:03.099611
Duration: 14.294 ms
Changes:
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment