On Thu, Jan 6, 2011 at 12:50 PM, jcbollinger <[email protected]>wrote:

>
>
> On Jan 6, 2:29 pm, Luc Suryo <[email protected]> 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
>

starting in 2.6.x, you can specify class level deps:

in the class definition:

class foo {
  Class['foo']->Class[bar']
}

or when you declare it:

class { 'foo':
  require => Class['bar']
}


> >
> > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-users%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to