We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bfa2fb commit 913d593Copy full SHA for 913d593
node/binary.sls
@@ -8,13 +8,21 @@
8
{% endif -%}
9
{% set pkgname = 'node-v' ~ version ~ '-linux-' ~ arch -%}
10
{% set format = node.get('format', 'gz') -%}
11
+{% if format == 'xz' -%}
12
+{% set tar_options = 'J' -%}
13
+{% elif format == 'bz2' -%}
14
+{% set tar_options = 'j' -%}
15
+{% else -%}
16
+{% set tar_options = 'z' -%}
17
+{% endif -%}
18
19
Extract binary package:
20
archive.extracted:
21
- name: /usr/local/src/
22
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.{{ format }}
23
- source_hash: {{ checksum }}
24
- archive_format: tar
25
+ - tar_options: {{ tar_options }}
26
- if_missing: /usr/local/src/{{ pkgname }}
27
28
Copy lib:
0 commit comments