paulbsd-salt/states/fuelprices/install.sls

16 lines
714 B
Plaintext

---
{%- from "fuelprices/map.jinja" import fuelprices with context %}
fuelprices-archive-extract:
archive.extracted:
- name: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
- source: {{ fuelprices.mirror }}/{{ fuelprices.version }}/fuelprices-{{ fuelprices.version }}-{{ fuelprices.os }}-{{ fuelprices.arch }}.tar.gz
- skip_verify: true
- enforce_toplevel: false
- if_missing: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
fuelprices-binary-symlink:
file.symlink:
- name: {{ fuelprices.install_dir }}/fuelprices
- target: {{ fuelprices.release_dir }}/fuelprices-{{ fuelprices.version }}
- require:
- archive: fuelprices-archive-extract