Created
February 13, 2013 00:20
-
-
Save ConsoleCatzirl/4775786 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| include: | |
| - java | |
| elasticsearch: | |
| pkg: | |
| - installed | |
| - sources: | |
| - elasticsearch: http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.deb | |
| service.running: | |
| - require: | |
| - pkg: elasticsearch | |
| - file: /mnt/elasticsearch | |
| - file: /var/log/elasticsearch | |
| - watch: | |
| - file: /etc/elasticsearch/elasticsearch.yml | |
| - file: /etc/elasticsearch/default_mapping.json | |
| /mnt/elasticsearch: | |
| file.directory: | |
| - user: elasticsearch | |
| - group: elasticsearch | |
| - require: | |
| - pkg: elasticsearch | |
| /var/log/elasticsearch: | |
| file.directory: | |
| - user: elasticsearch | |
| - group: elasticsearch | |
| - require: | |
| - pkg: elasticsearch | |
| /etc/elasticsearch/elasticsearch.yml: | |
| file.managed: | |
| - source: salt://elasticsearch/elasticsearch.yml | |
| - user: root | |
| - group: root | |
| - mode: 0644 | |
| - require: | |
| - pkg: elasticsearch | |
| /etc/elasticsearch/default_mapping.json: | |
| file.managed: | |
| - source: salt://elasticsearch/default_mapping.json | |
| - user: root | |
| - group: root | |
| - mode: 0644 | |
| - require: | |
| - pkg: elasticsearch |
This file contains hidden or 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
| ---------- | |
| State: - pkg | |
| Name: elasticsearch | |
| Function: installed | |
| Result: False | |
| Comment: An exception occured in this state: Traceback (most recent call last): | |
| File "/usr/lib/pymodules/python2.7/salt/state.py", line 1197, in call | |
| *cdata['args'], **cdata['kwargs']) | |
| File "/usr/lib/pymodules/python2.7/salt/states/pkg.py", line 303, in installed | |
| modified = [x for x in changes.keys() if x in targets] | |
| UnboundLocalError: local variable 'changes' referenced before assignment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment