Skip to content

Instantly share code, notes, and snippets.

@jsuchal

jsuchal/es.sls Secret

Created March 15, 2014 19:27
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 jsuchal/e63c85b4ca0a2eb9a939 to your computer and use it in GitHub Desktop.
Save jsuchal/e63c85b4ca0a2eb9a939 to your computer and use it in GitHub Desktop.
/srv/packages/elasticsearch.deb:
file.managed:
- source: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
- source_hash: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb.sha1.txt
elasticsearch:
pkg.installed:
- sources:
- elasticsearch: /srv/packages/elasticsearch.deb
- watch:
- file: /srv/packages/elasticsearch.deb
- require.pkg: openjdk-7-jre-headless
service:
- running
- watch.pkg: elasticsearch
@jsuchal
Copy link
Author

jsuchal commented Mar 15, 2014

----------
          ID: /srv/packages/elasticsearch.deb
    Function: file.managed
      Result: True
     Comment: File /srv/packages/elasticsearch.deb updated
     Changes:   
              ----------
              diff:
                  Replace binary file
----------
          ID: elasticsearch
    Function: service.running
      Result: True
     Comment: The service elasticsearch is already running
     Changes:   
----------
          ID: elasticsearch
    Function: pkg.installed
      Result: True
     Comment: All specified packages are already installed.
     Changes:   

Summary
------------
Succeeded: 3
Failed:    0
------------
Total:     3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment