Skip to content

Commit

Permalink
Merge pull request #232 from cogini/better-nodejs
Browse files Browse the repository at this point in the history
use redguide's nodejs, add its dependencies (ark, yum-epel)
  • Loading branch information
nhannguyen committed Nov 26, 2014
2 parents be1ca4d + 77dcc46 commit cda71da
Show file tree
Hide file tree
Showing 98 changed files with 4,972 additions and 87 deletions.
15 changes: 15 additions & 0 deletions ark/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
.bundle
.cache
.kitchen
bin
.kitchen.local.yml
.coverage
92 changes: 92 additions & 0 deletions ark/.kitchen.cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
driver_config:
digitalocean_client_id: <%= ENV['DIGITAL_OCEAN_CLIENT_ID'] %>
digitalocean_api_key: <%= ENV['DIGITAL_OCEAN_API_KEY'] %>
aws_access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
aws_secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
aws_ssh_key_id: <%= ENV['AWS_KEYPAIR_NAME'] %>
joyent_username: <%= ENV['SDC_CLI_ACCOUNT'] %>
joyent_keyfile: <%= ENV['SDC_CLI_IDENTITY'] %>
joyent_keyname: <%= ENV['SDC_CLI_KEY_ID'] %>
joyent_url: <%= ENV['SDC_CLI_URL'] %>

provisioner:
name: chef_zero
require_chef_omnibus: latest

platforms:
- name: AMI2014.03.2
driver_plugin: ec2
driver_config:
image_id: ami-7c807d14
username: ec2-user
ssh_key: <%= ENV['EC2_SSH_KEY_PATH'] %>

- name: centos-6.5
driver_plugin: digitalocean
driver_config:
flavor: 1GB
region: "New York 2"
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>

- name: debian-7.0
driver_plugin: digitalocean
driver_config:
flavor: 1GB
region: "New York 2"
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
run_list:
- recipe[apt]

- name: ubuntu-10.04
driver_plugin: digitalocean
driver_config:
flavor: 1GB
region: "New York 2"
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
run_list:
- recipe[apt]

- name: ubuntu-12.04
driver_plugin: digitalocean
driver_config:
flavor: 1GB
region: "New York 2"
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
run_list:
- recipe[apt]

- name: ubuntu-13.10
driver_plugin: digitalocean
driver_config:
flavor: 1GB
region: "New York 2"
ssh_key_ids: <%= ENV['DIGITAL_OCEAN_SSH_KEY_IDS'] %>
ssh_key: <%= ENV['DIGITAL_OCEAN_SSH_KEY_PATH'] %>
run_list:
- recipe[apt]

# - name: smartos-1330
# driver_plugin: joyent
# driver_config:
# joyent_image_id: 87b9f4ac-5385-11e3-a304-fb868b82fe10
# joyent_flavor_id: g3-standard-4-smartos
# username: root
# ssh_key: <%= ENV['SDC_CLI_IDENTITY'] %>
# provisioner:
# name: chef_zero
# sudo: false
# chef_omnibus_url: https://raw.github.com/test-kitchen/kitchen-joyent/master/scripts/install-smartos.sh

suites:
- name: default
run_list:
- recipe[minitest-handler]
- recipe[build-essential]
- recipe[ark]
- recipe[ark_spec]
attributes: {}
22 changes: 22 additions & 0 deletions ark/.kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
driver:
name: vagrant

provisioner:
name: chef_zero

platforms:
- name: centos-5.10
- name: centos-6.5
- name: fedora-19
- name: ubuntu-10.04
- name: ubuntu-12.04
- name: ubuntu-13.10

suites:
- name: default
run_list:
- recipe[minitest-handler]
- recipe[build-essential]
- recipe[ark]
- recipe[ark_spec]
attributes: {}
38 changes: 38 additions & 0 deletions ark/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
AlignParameters:
Enabled: false

Encoding:
Enabled: false

LineLength:
Max: 200
Exclude:
- '**/spec/**/*_spec.rb'

MethodLength:
Max: 25

CyclomaticComplexity:
Max: 7

ParameterLists:
Enabled: false

Documentation:
Enabled: false

StringLiterals:
Enabled: false

SingleSpaceBeforeFirstArg:
Enabled: true
Exclude:
- '**/metadata.rb'

TrivialAccessors:
Exclude:
- '**/spec/spec_helper.rb'

Style/RegexpLiteral:
Exclude:
- 'Guardfile'
114 changes: 114 additions & 0 deletions ark/.travis.yml

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions ark/Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source "http://api.berkshelf.com"

metadata

cookbook '7-zip'
cookbook 'windows'

group :integration do
cookbook 'apt'
cookbook 'minitest-handler'
cookbook 'build-essential'
end


cookbook "ark_spec", path: "spec/fixtures/cookbooks/ark_spec"
135 changes: 135 additions & 0 deletions ark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
ark Cookbook CHANGELOG
======================
This file is used to list changes made in each version of the ark cookbook.


v0.9.0 (2014-06-06)
-------------------
* [COOK-3642] Add Windows support


v0.8.2 (2014-04-23)
-------------------
- [COOK-4514] - Support for SLES with the Ark cookbook


v0.8.0 (2014-04-10)
-------------------
- [COOK-2771] - Add support for XZ compression


v0.7.2 (2014-03-28)
-------------------
- [COOK-4477] - Fix failing test suite
- [COOK-4484] - Replace strip_leading_dir attribute with more general strip_components


v0.7.0 (2014-03-18)
-------------------
- [COOK-4437] - configure and install_with_make should chown after unpack


v0.6.0 (2014-02-27)
-------------------
[COOK-3786] - Unable to install multiple versions of archive without duplication


v0.5.0 (2014-02-21)
-------------------
### Bug
- **[COOK-4288](https://tickets.opscode.com/browse/COOK-4288)** - Cleanup the Kitchen

### Improvement
- **[COOK-4264](https://tickets.opscode.com/browse/COOK-4264)** - Add node['ark']['package_dependencies'] to allow tuning packages.


v0.4.2
------
### Improvement
- **[COOK-3854](https://tickets.opscode.com/browse/COOK-3854)** - Capability with mac_os_x: '/bin/chown' - No such file or directory
- Cleaning up some style for rubucop
- Updating test harness


v0.4.0
------
### Improvement
- **[COOK-3539](https://tickets.opscode.com/browse/COOK-3539)** - Allow dumping of bz2 and gzip files

v0.3.2
------
### Bug
- **[COOK-3191](https://tickets.opscode.com/browse/COOK-3191)** - Propogate unzip failures
- **[COOK-3118](https://tickets.opscode.com/browse/COOK-3118)** - Set cookbook attribute in provider
- **[COOK-3055](https://tickets.opscode.com/browse/COOK-3055)** - Use proper scope in helper module
- **[COOK-3054](https://tickets.opscode.com/browse/COOK-3054)** - Fix notification resource updating

### Improvement
- **[COOK-3179](https://tickets.opscode.com/browse/COOK-3179)** - README updates and refactor

v0.3.0
------
### Improvement

- [COOK-3087]: Can't use ark with chef < 11

### Bug

- [COOK-3064]: `only_if` statements in ark's `install_with_make` and configure actions are not testing for file existence correctly.
- [COOK-3067]: ark kitchen test for `cherry_pick` is expecting the binary to be in the same parent folder as in the archive.

v0.2.4
------
### Bug

- [COOK-3048]: Ark provider contains a `ruby_block` resource without a block attribute
- [COOK-3063]: Ark cookbook `cherry_pick` action's unzip command does not close if statement
- [COOK-3065]: Ark install action does not symlink binaries correctly

v0.2.2
------
- Update the README to reflect the requirement for Chef 11 to use the ark resource (`use_inline_resources`).
- Making this a release so it will also appear on the community site page.

v0.2.0
------
### Bug

- [COOK-2772]: Ark cookbook has foodcritic failures in provides/default.rb

### Improvement

- [COOK-2520]: Refactor ark providers to use the '`use_inline_resources`' LWRP DSL feature

v0.1.0
------
- [COOK-2335] - ark resource broken on Chef 11

v0.0.1
------
- [COOK-2026] - Allow `cherry_pick` action to be used for directories as well as files

v0.0.1
------
- [COOK-1593] - README formatting updates for better display on Community Site

v0.0.1
------
### Bug
- dangling "unless"

### Improvement
- add `setup_py_*` actions
- add vagrantfile
- add foodcritic test
- travis.ci support

v0.0.10 (May 23, 2012
------
### Bug
- `strip_leading_dir` not working for zip files https://github.com/bryanwb/chef-ark/issues/19

### Improvement
- use autogen.sh to generate configure script for configure action https://github.com/bryanwb/chef-ark/issues/16
- support more file extensions https://github.com/bryanwb/chef-ark/pull/18
- add extension attribute which allows you to download files which do not have the file extension as part of the URL
Loading

0 comments on commit cda71da

Please sign in to comment.