Skip to content

Commit 8ff42ea

Browse files
committed
default to package installation of nodejs on smartos
1 parent c65ddcf commit 8ff42ea

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

attributes/default.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@
1717
# limitations under the License.
1818
#
1919

20-
default['nodejs']['install_method'] = 'source'
20+
case node['platform_family']
21+
when "smartos"
22+
default['nodejs']['install_method'] = 'package'
23+
else
24+
default['nodejs']['install_method'] = 'source'
25+
end
26+
2127
default['nodejs']['version'] = '0.10.13'
2228
default['nodejs']['checksum'] = '7e2079394efe82f62798178f617888c9d6a39150c76122c432ae9ea73ce28e79'
2329
default['nodejs']['checksum_linux_x64'] = '83b8f07aa7981694e557a9aae7e5bc4c312d800c'

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
license "Apache 2.0"
44
description "Installs/Configures nodejs"
55
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
6-
version "1.2.0"
6+
version "1.3.0"
77
name "nodejs"
88
provides "nodejs"
99

0 commit comments

Comments
 (0)