Skip to content

Commit 58f1c7d

Browse files
committed
Merge pull request #26 from luciddg/25-binary-archive-extract
Fix a bug with improperly used archive.extracted source value
2 parents ca37c49 + 48896b6 commit 58f1c7d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

node/binary.sls

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
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-
126
Extract binary package:
137
archive.extracted:
148
- name: /usr/local/src/
15-
- source: /usr/local/src/{{ pkgname }}.tar.gz
9+
- source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
10+
- source_hash: sha256={{ checksum }}
1611
- archive_format: tar
1712
- if_missing: /usr/local/src/{{ pkgname }}
1813

0 commit comments

Comments
 (0)