how about to decouple the dependent chain (A2mod[php5] => Service[httpd]  
or Service[httpd] => Class[Apache]?

Just to install packages without call Service at installation stage; after 
that call class of Service.

Hope it could help.


On Thursday, April 25, 2013 6:22:21 AM UTC+8, jmar...@gmail.com wrote:
>
>
> I am trying to use puppetlabs apache module on CentOS to install mod php 
> package.
>
>    class {'apache::mod::php':  }
>
> It returns error "Error: Could not find dependency Package[httpd] for 
> A2mod[php5]". I am using Puppet 3.1 version. 
>
>
>
> Do I need to call class{'apache': } explicitly to get mod-php install 
> working? If I try that as follows then it returns dependency cycle error. 
> Can someone provide an example usage to install mod-php and handle main 
> httpd package install as well?
>
>     class {'apache':} -> class {'apache::mod::php': }
>
>     Error: Could not apply complete catalog: Found 1 dependency cycle:
> (A2mod[php5] => Service[httpd] => Class[Apache] => Class[Apache::Mod::Php] 
> => Apache::Mod[php5] => A2mod[php5])
> Try the '--graph' option and opening the resulting '.dot' file in 
> OmniGraffle or GraphViz
>
> ~johan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to