-
Notifications
You must be signed in to change notification settings - Fork 885
Set the global node version in the site manifest #311
Conversation
In my opinion this should be set in your organization project. |
I think having a global node version would be useful in some cases. |
@rafaelfranca I would agree if there weren't node versions being installed in the site manifest file. Since there are I think it would be helpful to at least setup one as the default. |
So 👍 |
I removed these version on my organization project. |
Set the global node version in the site manifest
I quite agree. Defaults are nice and all, but the override for this is hack-ish at best. This change likely should be backed out and discussed further. On Jun 19, 2013, at 11:48 AM, Rafael Mendonça França notifications@github.com wrote:
|
I'll revert it. Thanks for your input. |
This reverts commit 40de1e4, reversing changes made to 206dee9. Reason: This make harder to override the global version if it is required for someone. See #311 (comment)
@wfarr Sorry, I didn't realize I was being hacky - I'm still learning boxen and puppet. I'd be happy to take another crack at this if you could suggest a better approach? |
* 'master' of https://github.com/boxen/our-boxen: Revert "Merge pull request boxen#311 from smcnabb/master" Set the global node version in the site manifest Add note about GitHub usernames with dashes in README Replace dashes by underscores in GitHub usernames
* upstream/master: Revert "Merge pull request boxen#311 from smcnabb/master" Set the global node version in the site manifest Add note about GitHub usernames with dashes in README Replace dashes by underscores in GitHub usernames
@smcnabb So the part that makes this hacky is any override behavior. What I'd like to do is have a Pull Request against the nodejs repo that adds a The reason this particular approach is IMO better is that for anyone forking this repo, in the future, they'll be able to simply edit a yaml file in this repo to change things like the default nodejs, ruby, etc versions. And in fact, Hiera makes it easy for users to do this for themselves with overrides. This makes customizing one's own environment super easy to understand without having to understand Puppet itself. |
So what's the right way to do this right now? |
class { 'nodejs::global':
version => 'v0.10'
} |
This reverts commit 40de1e4, reversing changes made to 206dee9. Reason: This make harder to override the global version if it is required for someone. See boxen/our-boxen#311 (comment)
This reverts commit 40de1e4, reversing changes made to 206dee9. Reason: This make harder to override the global version if it is required for someone. See boxen/our-boxen#311 (comment)
This reverts commit 40de1e40f3e3c5d47d157c1f996a2a21f033a113, reversing changes made to 206dee9965730738b0c6011e271950ebfa329d75. Reason: This make harder to override the global version if it is required for someone. See boxen/our-boxen#311 (comment)
This reverts commit 40de1e40f3e3c5d47d157c1f996a2a21f033a113, reversing changes made to 206dee9965730738b0c6011e271950ebfa329d75. Reason: This make harder to override the global version if it is required for someone. See boxen/our-boxen#311 (comment)
It doesn't look like the global node version gets set anywhere. I had to add this change to our site manifest to fix.
Before:
After: