Tim,
I've never really used the dpkg provider before, but a quick test seems
to indicate that just changing the source file isn't sufficient to get
the new version installed.
Installing first with:
package { "puppet-dashboard":
provider => dpkg,
ensure => installed,
source => "/tmp/puppet-dashboard_1.0.4rc2-1_all.deb"
}
Then changing the source to be:
package { "puppet-dashboard":
provider => dpkg,
ensure => installed,
source => "/tmp/puppet-dashboard_1.0.4rc2-2_all.deb"
}
The 1.0.4rc2-2 version is not installed.
Off hand, I'm not sure what the right way to do it would be, but I can
confirm that just changing the source with the dpkg provider is not
sufficient.
--
Jacob Helwig
Well, Nan just suggested that we try "ensure => latest", and that _does_
get it to upgrade the package, when the source line is changed.
So... Something like the following for the package should get what you
want:
package { "puppet-dashboard":
provider => dpkg,
ensure => latest,
source => "/tmp/puppet-dashboard_1.0.4rc2-1_all.deb"
}
--
Jacob Helwig
Here's a tutorial for a really simple repository if you want it:
http://nerdica.com/?p=43
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>