Sorry to get this way late, but I've got a solution for you if you haven't found it already. So I'm putting this into the archives.
On Sun, Sep 12, 2010 at 10:32 AM, FreddieB <freddie.bra...@gmail.com> wrote: > Hi everyone, > > I have an interesting problem I think. > I'm trying to install MySQL on FreeBSD. This is what I have in my > init.pp of the module: > ---------------- start ------------------ > package { 'MySQL-server' : > name => $operatingsystem ? { > freebsd => 'mysql51-server', > debian => 'mysql-server-5.0', > default => 'mysql51-server', > }, > ensure => installed, > } > ----------------- end -------------------- > When I run puppet this works fine, MySQL gets installed. > But, when I run it a second time I get an error: > > I rewrote the freebsd package/port provider a while ago and it's in the tree - if you can handle having the portupgrade system installed, it should fix your problem. Also "ensure => latest" works. Use the "portupgrade" provider, and specify the package name as the _full origin_ "database/mysql51-server". If you've got custom compile options, then you can just make a dependency to "/var/db/ports/<name>/options" so they get compiled correctly as well. Cheers, Ross. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.