If tomcat::enable is in a separate file you'll want to 'include' it in
tomcat::server to ensure it's in scope.

On Thu, Oct 20, 2011 at 4:27 PM, Douglas Garstang
<doug.garst...@gmail.com> wrote:
> Thanks, tried that. I moved the tomcat service out of tomcat::server
> into tomcat::enable, but...
>
> I had this in my tomcat::server class:
>
>    File {
>        require => Package['apache-tomcat6'],
>        before => Service['tomcat']
>    }
>
> which now doesn't work, because it can't find the tomcat service. I tried 
> this:
>
>    File {
>        require => Package['apache-tomcat6'],
>        before => Class['tomcat::enable'] #Service['tomcat']
>    }
>
> but puppet complains "Could not find dependent Class[Tomcat::Enable]".
>
> Any ideas?
>
> Doug.
>
>
> On Thu, Oct 20, 2011 at 2:46 PM, Aaron Grewell <aaron.grew...@gmail.com> 
> wrote:
>> I suspect you may want a separate class, something like tomcat::enable
>> to handle the service independently.
>>
>> On Thu, Oct 20, 2011 at 1:55 PM, Douglas Garstang
>> <doug.garst...@gmail.com> wrote:
>>> All,
>>>
>>> I have a tomcat module, and another module, containing a tomcat
>>> application called OpenAM. In the OpenAM module, I 'require' the
>>> tomcat module, which ensures that all the tomcat bits are in place
>>> before trying to install the OpenAM bits.
>>>
>>> That works great.... except the tomcat bits includes the tomcat
>>> service. I want the OpenAM module to require the tomcat module, but I
>>> don't want the tomcat service to start until the OpenAM module is
>>> complete.
>>>
>>> What's the best practice way to arrange this?
>>>
>>> Doug.
>>>
>>> --
>>> 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.
>>>
>>>
>>
>> --
>> 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.
>>
>>
>
>
>
> --
> Regards,
>
> Douglas Garstang
> http://www.linkedin.com/in/garstang
> Email: doug.garst...@gmail.com
> Cell: +1-805-340-5627
>
> --
> 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.
>
>

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