On 10/07/2010 10:43 AM, Ross W wrote:
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".
I'd note that portupgrade is buggy when run non-interactively. You may
have problems with puppet hanging and have "script" instances spinning
on the CPU at 100%. YMMV.
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.
The format of the files and layout of /var/db/ports is considered
private. Only the ports framework should mess with it. If you're going
to set compile options by hand, they belong in /etc/make.conf.
--
Russell A Jackson <r...@csub.edu>
Network Analyst
California State University, Bakersfield
--
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.