Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: uninstall nodejs entirely #210

Closed
jeff1evesque opened this issue Mar 25, 2016 · 2 comments
Closed

Question: uninstall nodejs entirely #210

jeff1evesque opened this issue Mar 25, 2016 · 2 comments

Comments

@jeff1evesque
Copy link

I've installed nodejs via:

...
    class { 'nodejs':
        repo_url_suffix => '5.x',
    }
...

But, I'm curious: if I no longer need nodejs after provisioning, and want to remove nodejs entirely, is there an appropriate method to remove it? For example willdurand/puppet-nodejs has the following implementation:

::nodejs::install { 'node-v5.4':
  ensure  => absent,
  version => 'v5.4.1',
}
@igalic
Copy link
Contributor

igalic commented Mar 29, 2016

from what i gather, it should be enough to amend your definition with:

class { 'nodejs':
  nodejs_package_ensure => absent,
  repo_url_suffix       => '5.x',
}

…unless you're on gentoo.

@juniorsysadmin
Copy link
Member

Pretty sure things should work with nodejs_package_ensure set to absent and the other manage_things stuff set to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants