Skip to content

Commit 714749a

Browse files
authored
Merge pull request #35 from leansalt/ppa-default-to-LTS
Install LTS version of nodejs (6.9) by default to from PPA
2 parents c475a4c + 424829c commit 714749a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
This formula installs [node.js](https://nodejs.org/en/).
44

5+
## Installing from PPA
6+
7+
An example pillar for installing from Debian based PPA repository:
8+
9+
node:
10+
version: 6.9.4
11+
install_from_ppa: True
12+
ppa:
13+
repository_url: https://deb.nodesource.com/node_6.x
14+
515
## Installing from source
616

717
An example pillar file looks as follows:

node/pkg.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nodejs.ppa:
88
- pkgrepo: nodejs.ppa
99
pkgrepo.managed:
1010
- humanname: NodeSource Node.js Repository
11-
- name: deb {{ salt['pillar.get']('node:ppa:repository_url', 'https://deb.nodesource.com/node_0.12') }} {{ grains['oscodename'] }} main
11+
- name: deb {{ salt['pillar.get']('node:ppa:repository_url', 'https://deb.nodesource.com/node_6.x') }} {{ grains['oscodename'] }} main
1212
- dist: {{ grains['oscodename'] }}
1313
- file: /etc/apt/sources.list.d/nodesource.list
1414
- keyid: "68576280"

pillar.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ node:
1313

1414
# Install from PPA:
1515
node:
16-
version: 5.4.0
16+
version: 6.9.4
1717
install_from_ppa: True
1818
ppa:
19-
repository_url: https://deb.nodesource.com/node_5.x
19+
repository_url: https://deb.nodesource.com/node_6.x

0 commit comments

Comments
 (0)