voxpupuli / puppet-nodejs

Puppet module to install nodejs and global npm packages
https://forge.puppet.com/puppet/nodejs
Apache License 2.0
113 stars 247 forks source link

Question: uninstall nodejs entirely #210

Closed jeff1evesque closed 8 years ago

jeff1evesque commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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