{"action":"created","issue":{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/167","repository_url":"https://api.github.com/repos/willdurand/puppet-nodejs","labels_url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/167/comments","events_url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/167/events","html_url":"https://github.com/willdurand/puppet-nodejs/issues/167","id":184683721,"number":167,"title":"create an autoremove tool","user":{"login":"Ma27","id":6025220,"avatar_url":"https://avatars.githubusercontent.com/u/6025220?v=3","gravatar_id":"","url":"https://api.github.com/users/Ma27","html_url":"https://github.com/Ma27","followers_url":"https://api.github.com/users/Ma27/followers","following_url":"https://api.github.com/users/Ma27/following{/other_user}","gists_url":"https://api.github.com/users/Ma27/gists{/gist_id}","starred_url":"https://api.github.com/users/Ma27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ma27/subscriptions","organizations_url":"https://api.github.com/users/Ma27/orgs","repos_url":"https://api.github.com/users/Ma27/repos","events_url":"https://api.github.com/users/Ma27/events{/privacy}","received_events_url":"https://api.github.com/users/Ma27/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/labels/requires%20investiagtion","name":"requires investiagtion","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/milestones/2","html_url":"https://github.com/willdurand/puppet-nodejs/milestones/2.0","labels_url":"https://api.github.com/repos/willdurand/puppet-nodejs/milestones/2/labels","id":1510935,"number":2,"title":"2.0","description":"","creator":{"login":"Ma27","id":6025220,"avatar_url":"https://avatars.githubusercontent.com/u/6025220?v=3","gravatar_id":"","url":"https://api.github.com/users/Ma27","html_url":"https://github.com/Ma27","followers_url":"https://api.github.com/users/Ma27/followers","following_url":"https://api.github.com/users/Ma27/following{/other_user}","gists_url":"https://api.github.com/users/Ma27/gists{/gist_id}","starred_url":"https://api.github.com/users/Ma27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ma27/subscriptions","organizations_url":"https://api.github.com/users/Ma27/orgs","repos_url":"https://api.github.com/users/Ma27/repos","events_url":"https://api.github.com/users/Ma27/events{/privacy}","received_events_url":"https://api.github.com/users/Ma27/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":17,"state":"open","created_at":"2016-01-17T12:08:11Z","updated_at":"2016-10-23T11:00:05Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-23T11:00:05Z","updated_at":"2016-10-23T11:00:11Z","closed_at":null,"body":"### Description\r\n\r\nwhenever multiple versions are used and some of them is not needed anymore, but not explicitly declared to be removed, it remains somewhere deep in the `/usr` directory.\r\nAnother case where unused instances remain is when someone points at the `latest` instance and runs after some time a new puppet run and another newer latest release is there.\r\nThen the new one will be installed over the old one and the `node` and `npm` symlinks will be changed, but the old stuff remains.\r\n\r\n### Steps to reproduce\r\n\r\n- install a node version\r\n- install another one in a second puppet run\r\n- the old one remains if not explicitly declared\r\n\r\n### Expected behavior\r\n\r\nit should be removed automatically.\r\n\r\n### Approach\r\n\r\nThis should be optional, but default true.\r\nA fact which gathers all instances could be written and the `init.pp` could automatically kill old instances that are not needed anymore.\r\n\r\n``` puppet\r\nclass { '::nodejs':\r\n  version => 'latest',\r\n  autoremove => true,\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/comments/255582227","html_url":"https://github.com/willdurand/puppet-nodejs/issues/167#issuecomment-255582227","issue_url":"https://api.github.com/repos/willdurand/puppet-nodejs/issues/167","id":255582227,"user":{"login":"Ma27","id":6025220,"avatar_url":"https://avatars.githubusercontent.com/u/6025220?v=3","gravatar_id":"","url":"https://api.github.com/users/Ma27","html_url":"https://github.com/Ma27","followers_url":"https://api.github.com/users/Ma27/followers","following_url":"https://api.github.com/users/Ma27/following{/other_user}","gists_url":"https://api.github.com/users/Ma27/gists{/gist_id}","starred_url":"https://api.github.com/users/Ma27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ma27/subscriptions","organizations_url":"https://api.github.com/users/Ma27/orgs","repos_url":"https://api.github.com/users/Ma27/repos","events_url":"https://api.github.com/users/Ma27/events{/privacy}","received_events_url":"https://api.github.com/users/Ma27/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T11:00:11Z","updated_at":"2016-10-23T11:00:11Z","body":"@willdurand WDYT?"}}
{"actor":{"display_login":"Ma27"}}