On Jan 6, 2:29 pm, Luc Suryo <lsu...@gmail.com> wrote:
> Hello
>
> Is it possible to define a class say php-fpm that requires the class
> php to be called first ?
> if so what s the syntax?
>
> Here is some background (Ubuntu distro)
>
> To get the latest version of either  php or php-fpm I need to setup a
> new repo (dotdeb), since
> if one is using php-fpm there is big chance you will need php bit not
> the way-around...
>
> So since I setup the repo in php the class php-fpm can not start
> before the class php
> is done... make sense ? I do have a work around by adding a require in
> the 'package' resource
> something like
>
> package ( "php5-pfm" : ensure => "installed", require => "Update_repo[
> "dotdeb-repo" ] }
>
> where update_repo ( "dotdeb-repo" } is in the php class
>
> make sense? comment? advice ?

Why is it a problem to put the require on Package["php5-pfm"] as you
are already doing?  That's where it SHOULD go.


John

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

Reply via email to