rosenfeld / gitorious-cookbooks

Cookbooks collection for being used by Gitorious and chef-solo
71 stars 11 forks source link

Purge Portmap Debian 6 #17

Open dubcanada opened 12 years ago

dubcanada commented 12 years ago

Hey

I had a problem at the stage where it purged'd the portmap from debian 6. I ran into an error that it could not be stopped, that is because nfs-common needs to be removed first.

This fixed the issue

apt-get --purge remove nfs-kernel-server nfs-common portmap

Just a little help for those who run into the same issue.

rosenfeld commented 12 years ago

Take a look at this:

https://github.com/rosenfeld/gitorious-cookbooks/blob/master/gitorious/recipes/default.rb

I remove portmap because I didn't need it and it is installed by default on Debian and opens a new port that could lead to security issues. The lines in the recipe are those:

# comment the above line if you want to keep portmap and rpcbind
%w( portmap rpcbind ).each {|p| package(p) { action :purge } }

So, this seems to be a bug in Chef itself, as it should take care of purging that package correctly, including the dependencies. Let me know if I'm wrong and Chef documentation states something else.

Anyway, Gitorious will work if you keep portmap, if you wish to.

The strange part is that I never had this issue myself. Not sure why you're getting this issue.