Add package_versions attribute #65

wants to merge 1 commit into


None yet

2 participants

decklin commented Oct 31, 2013

The install_from_package recipe doesn't provide a way to specify versions. Since versions for distro packages will be different from versions of node.js itself, this attribute is a hash of distro package name => distro package version. You need to know what distro packages you will be installing.

If you don't set anything, then the package resource will just get version nil and default to the latest version as it does now.

Example usage:

node.set['nodejs']['package_versions']['nodejs'] = value_for_platform('ubuntu' => {
    '10.04' => '0.10.21-1chl1~lucid1',
    '12.04' => '0.10.21-1chl1~precise1',

include_recipe 'nodejs::install_from_package'
mdxp commented Mar 4, 2014

Do any of the existing default repositories provide multiple package versions? As this is nice but because of that I would say it is unusable unless if you have your own custom repo. Let me know what you think.

mdxp commented Sep 16, 2014

The development of the nodejs cookbook has been move here:
Your PR functionality might have been already included in the new repo. If not, please resubmit it there. Thanks!

@mdxp mdxp closed this Sep 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment