Hi all,

I'm trying to setup a puppet installation on FreeBSD. So far I have
only one puppetmaster and one puppetclient, both with 0.24.4 from
FreeBSD ports. On the master I've defined a couple of classes
including this:

class apache22 {
  package { apache22:
    ensure => installed,
    source => "http://x.x.x.x/packages/apache-2.2.9_5.tbz";,
    provider => freebsd
  }

  service { "apache22":
    ensure => running,
    enable => true,
    hasstatus => true,
    hasrestart => true
  }
}

And my site.pp is:

import "classes/*"

node default {
  include test
  include ruby186
  include sudo
  include apache22
}

Now when I run puppetd --test the first time it installs and starts
apache. But on all following runs I get:

err: //Node[default]/apache22/Package[apache22]/ensure: change from
absent to present failed: Execution of '/usr/sbin/pkg_add
http://x.x.x.x/packages/apache-2.2.9_5.tbz' returned 256: pkg_add:
package 'apache-2.2.9_5' or its older version already installed

It seems to me that puppet is not registering the installation of the
package the first time around. What am I doing wrong here?

--~--~---------~--~----~------------~-------~--~----~
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