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.
2 parents b139f1a + ece45e3 commit 1a8aec7Copy full SHA for 1a8aec7
node/binary.sls
@@ -3,11 +3,16 @@
3
{% set checksum = node.get('checksum', 'f037e2734f52b9de63e6d4a4e80756477b843e6f106e0be05591a16b71ec2bd0') -%}
4
{% set pkgname = 'node-v' ~ version ~ '-linux-x64' -%}
5
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
+
12
Extract binary package:
13
archive.extracted:
14
- name: /usr/local/src/
- - source: https://nodejs.org/dist/v{{ version }}/{{ pkgname }}.tar.gz
- - source_hash: sha256={{ checksum }}
15
+ - source: /usr/local/src/{{ pkgname }}.tar.gz
16
- archive_format: tar
17
- if_missing: /usr/local/src/{{ pkgname }}
18
0 commit comments