Skip to content

Commit 1a8aec7

Browse files
authored
Merge pull request #32 from Granjow/archive-extracted
Revert "Fix a bug with improperly used archive.extracted source value"
2 parents b139f1a + ece45e3 commit 1a8aec7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

node/binary.sls

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
{% set checksum = node.get('checksum', 'f037e2734f52b9de63e6d4a4e80756477b843e6f106e0be05591a16b71ec2bd0') -%}
44
{% set pkgname = 'node-v' ~ version ~ '-linux-x64' -%}
55

6+
Get binary package:
7+
file.managed:
8+
- name: /usr/local/src/{{ pkgname }}.tar.gz
9+
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
10+
- source_hash: sha256={{ checksum }}
11+
612
Extract binary package:
713
archive.extracted:
814
- name: /usr/local/src/
9-
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
10-
- source_hash: sha256={{ checksum }}
15+
- source: /usr/local/src/{{ pkgname }}.tar.gz
1116
- archive_format: tar
1217
- if_missing: /usr/local/src/{{ pkgname }}
1318

0 commit comments

Comments
 (0)