Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #77 from bluespurs/master

Adding rhel, debian, and fedora support for package installation.
  • Loading branch information...
commit e2415cd8c4e03dccf21d7ef6ca31e1c5c81467ca 2 parents 34bab9b + 7e85874
@mdxp authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  attributes/default.rb
  2. +2 −0  recipes/install_from_package.rb
View
2  attributes/default.rb
@@ -18,7 +18,7 @@
#
case node['platform_family']
- when "smartos"
+ when "smartos", "rhel", "debian", "fedora"
default['nodejs']['install_method'] = 'package'
else
default['nodejs']['install_method'] = 'source'
View
2  recipes/install_from_package.rb
@@ -41,6 +41,8 @@
when 'rhel'
include_recipe 'yum-epel'
packages = %w{ nodejs nodejs-devel npm }
+ when 'fedora'
+ packages = %w{ nodejs nodejs-devel npm }
when 'smartos'
packages = %w{ nodejs }
else

1 comment on commit e2415cd

@steve-jansen

Hi @mdxp!

Any chance you could please, please release this commit as a ~ v1.3.1 of the cookbook? I have several Berksfile's pinned to this SHA because it's needed to work properly on CentOS 6.5 with yum v3+...

Cheers!
Steve

Please sign in to comment.
Something went wrong with that request. Please try again.