This set of patches includes multiple changes and is not backward-compatible. In summary this code: - Supercedes PR 99 (MODULES-1075), 97, 96, 94, 93, 85, 82, 80, 79, 51, 69, 66 and 102 - Explicitly makes Debian Squeeze unsupported - Makes nodejs, nodejs-dev and nodejs-debug package names parameters - Defaults to using the NodeSource repositories where possible, but allows native packages to be installed when appropriate parameters are set - Introduces a parameter repo_class, which allows one to use alternative repositories like EPEL for the Node.js packages. - Adds Windows installation support via Chocolatey - Adds FreeBSD and OpenBSD support - Changes the format of the nodejs::npm defined type to be module|path rather than path:module for the name - Attempts to support all of the npm install <package> forms, except for version ranges. Tags are supported with a separate parameter, and the version parameter has been removed (Version numbers can be passed to the ensure parameter instead) - Adds a defined type nodejs::npm::global_config_entry, which allows one to set and delete global npm config options. The proxy parameter in nodejs:npm has been removed since this can now be done with global_config_entry. - Adds a number of RSpec unit tests - Adds a Beaker acceptance test skeleton
This adds parameters for the following packages: * node_pkg * npm_pkg * dev_pkg For backwards-compatibility, I have left the `dev_package` boolean name intact. Added a little more documentation. Noted that this has been tested on Red Hat Enterprise Linux 6. Update tests: * Default to 'false' for `dev_package` on RHEL and derivatives (including Fedora and Amazon). * Add tests for RHEL and derivatives: * when `node_pkg` is defined * when `node_pkg` and `npm_pkg` are defined
Instead just try and parse the JSON on stdout. If the command doesn't produce JSON fail, then the error handler still exists. Bugs in npm or packaging like https://bugzilla.redhat.com/show_bug.cgi?id=986422 can cause package lists to come back empty even if the error's harmless.
in Chris lea's PPA
Since we are switching to using yumrepo, lets remove any existing nodejs-stable-release packages on osfamily RedHat.
nodejs.tchol.org seems to be offline, so lets use patches.fedorapeople.org instead to deploy RPMs via yumrepo.