> My first thought would be that your vim package is set up to advertise itself
> as providing an acceptable substitute for the vim-nox package.  Thus, when
> puppet asks your package manager "do you have the vim-nox package installed?"
> it says "sure!"

It doesn't look like it.  Perusing the code for the provider, it looks
like it uses this command to test for the presence of "vim-nox":

# /usr/bin/dpkg-query -W --showformat '${Status} ${Package}
${Version}\n' vim-nox
purge ok not-installed vim-nox
# /usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' vim
install ok installed vim 1:7.1-138+1ubuntu3

As you can see, it admits it is not installed.

Despite this, running "puppetd --test --debug" shows prefetching the
package list and then no attempt to install vim-nox.  No mention of
> You don't say which package manager you're using, so this is purely 
> speculation,
> but it would be simple enough to create a manifest to test this out.

I'm using the "aptitude" provider.

> package { "vim-purge":
>  name => "vim",
>  ensure => absent
> }
> package { "vim":
>  name => "vim-nox",
>  ensure => installed,
>  require => Package["vim-purge"]
> }

Excellent suggestion.  That, of course, fixed the problem.

It's still not clear to me why this happened, which is going to annoy
me for a bit.

Thanks!

-Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to