f68d39c912
Use attribute node['nodejs']['npm_packages'] Use Hash to provision resource Rubocop fixes
85 linhas
1.5 KiB
YAML
85 linhas
1.5 KiB
YAML
---
|
|
driver_plugin: vagrant
|
|
driver_config:
|
|
require_chef_omnibus: true
|
|
customize:
|
|
memory: 512
|
|
cpus: 4
|
|
|
|
platforms:
|
|
- name: ubuntu-14.04
|
|
driver_config:
|
|
box: chef/ubuntu-14.04
|
|
run_list:
|
|
- recipe[apt]
|
|
- name: ubuntu-12.04
|
|
driver_config:
|
|
box: chef/ubuntu-12.04
|
|
run_list:
|
|
- recipe[apt]
|
|
- name: ubuntu-10.04
|
|
driver_config:
|
|
box: chef/ubuntu-10.04
|
|
run_list:
|
|
- recipe[apt]
|
|
- name: centos-6.5
|
|
driver_config:
|
|
box: chef/centos-6.5
|
|
- name: centos-5.10
|
|
driver_config:
|
|
box: chef/centos-5.10
|
|
|
|
suites:
|
|
- name: default
|
|
run_list:
|
|
- recipe[nodejs]
|
|
- name: package
|
|
run_list:
|
|
- recipe[nodejs]
|
|
attributes:
|
|
nodejs:
|
|
install_method: package
|
|
- name: binary
|
|
run_list:
|
|
- recipe[nodejs]
|
|
attributes:
|
|
nodejs:
|
|
install_method: binary
|
|
- name: source
|
|
run_list:
|
|
- recipe[nodejs]
|
|
attributes:
|
|
nodejs:
|
|
install_method: source
|
|
- name: npm
|
|
run_list:
|
|
- recipe[nodejs::npm]
|
|
- recipe[nodejs_test::npm]
|
|
- name: npm_embedded
|
|
run_list:
|
|
- recipe[nodejs::npm]
|
|
- recipe[nodejs_test::npm]
|
|
attributes:
|
|
nodejs:
|
|
npm:
|
|
install_method: embedded
|
|
- name: npm_source
|
|
run_list:
|
|
- recipe[nodejs::npm]
|
|
- recipe[nodejs_test::npm]
|
|
attributes:
|
|
nodejs:
|
|
npm:
|
|
install_method: source
|
|
- name: npm_packages
|
|
run_list: recipe[nodejs]
|
|
attributes:
|
|
nodejs:
|
|
npm_packages:
|
|
- name: express
|
|
- name: socket.io
|
|
version: 1.0.4
|
|
- name: express
|
|
action: uninstall
|
|
|