Skip to content

Instantly share code, notes, and snippets.

@polds
Last active September 3, 2015 21:20
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 polds/a87480485841c32cc97a to your computer and use it in GitHub Desktop.
Save polds/a87480485841c32cc97a to your computer and use it in GitHub Desktop.
----------
ID: consul
Function: archive.extracted
Name: /opt/consul
Result: True
Comment: /opt/consul/ already exists
Started: 21:08:54.520311
Duration: 1.295 ms
Changes:
----------
ID: consul
Function: file.managed
Name: /usr/bin/consul
Result: False
Comment: Unable to manage file: string indices must be integers, not str
Started: 21:08:54.523747
Duration: 71.119 ms
Changes:
consul:
archive.extracted:
- name: /opt/consul
- source: https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip
- source_hash: sha256=171cf4074bfca3b1e46112105738985783f19c47f4408377241b868affa9d445
- archive_format: zip
file.managed:
- name: /usr/bin/consul
- source: /opt/consul/consul
@jberends
Copy link

jberends commented Sep 3, 2015

consul:
  archive.extracted:
    - name: /opt/consul
    - source: https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip
    - source_hash: sha256=171cf4074bfca3b1e46112105738985783f19c47f4408377241b868affa9d445
    - archive_format: zip
  file.managed:
    - name: /usr/bin/consul
    - source: /opt/consul/consul
    - require:
      - archive: consul

@jberends
Copy link

jberends commented Sep 3, 2015

/opt/consul:
  archive.extracted:
    - source: https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip
    - source_hash: sha256=171cf4074bfca3b1e46112105738985783f19c47f4408377241b868affa9d445
    - archive_format: zip

/usr/bin/consul:
  file.managed:
    - source: /opt/consul/consul
    - require:
      - archive: /opt/consul

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