Hi

> I hope I haven't dug myself into a corner here... How can I make sure
> that /some/file.xml is created BEFORE the jboss-tfel0 service is
> started?
> 
> I can't use before => in the file{} in the jboss class because it
> doesn't exist there.


why not?

try:

define create_jboss_inst($inst, $version, $naming_port) {
   ....
   service {
       "jboss-$inst":
           require    => [ Package["jboss-server"],
Package["jboss-server-$inst"] ],
           ensure     => running,
           enable     => true,
           hasrestart => true,
           hasstatus  => true
   }
   ....
}

class jboss {
   ....
   file {
       "/some/file.xml":
            source => "puppet://$server/jboss/conf/some/file.xml",
            before => Service["jboss-$inst"],
   }
   ....
}

I think this is what you already had and this is working. If it doesn't
please send the error you get.

cheers pete

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