16 lines
714 B
Plaintext
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 |