Skip to content

Commit 0c18f7b

Browse files
committed
Move apt recipe requirement to install from package
1 parent 4c68552 commit 0c18f7b

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ REQUIREMENTS
1616

1717
## Cookbooks:
1818

19-
* build-essential
20-
* apt
19+
* build-essential (when installing from source)
20+
* apt or yum (when installing from package)
2121

2222
Opscode cookbooks (http://github.com/opscode/cookbooks/tree/master)
2323

recipes/default.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,5 @@
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
1919
#
20-
case node['platform_family']
21-
when "debian"
22-
include_recipe "apt"
23-
end
2420

2521
include_recipe "nodejs::install_from_#{node['nodejs']['install_method']}"

recipes/install_from_package.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
case node['platform_family']
2424
when 'debian'
25+
include_recipe "apt"
2526
if node['nodejs']['legacy_packages'] == true
2627
repo = 'http://ppa.launchpad.net/chris-lea/node.js-legacy/ubuntu'
2728
packages = %w{ nodejs npm }

0 commit comments

Comments
 (0)