PHP cookbook questions?


#1

Folks,

In the Opscode PHP cookbook at https://github.com/opscode/cookbooks/tree/master/php, there is a four-line recipe for installing the php-mongo PECL (well, one comment line and three Ruby lines). But I’m not quite clear on what would be the most “Chefly” way to implement this. Should I modify my version of the PHP cookbook to include these lines, or should I create a separate cookbook & recipe for this stuff?

Thanks!


Brad Knowles bknowles@ihiji.com
SAGE Level IV, Chef Level 0.0.1


#2

On Tuesday, October 25, 2011 at 8:56 AM, Brad Knowles wrote:

Folks,

In the Opscode PHP cookbook at https://github.com/opscode/cookbooks/tree/master/php, there is a four-line recipe for installing the php-mongo PECL (well, one comment line and three Ruby lines). But I’m not quite clear on what would be the most “Chefly” way to implement this. Should I modify my version of the PHP cookbook to include these lines, or should I create a separate cookbook & recipe for this stuff?

Thanks!


Brad Knowles <bknowles@ihiji.com (mailto:bknowles@ihiji.com)>
SAGE Level IV, Chef Level 0.0.1
I don’t think there’s an accepted “best practice” here, so I’d advise following a YAGNI strategy here; that is, do the simplest thing that solves your problem for now without screwing yourself into a lot of work in the future. If you build up unnecessary complexity before you need it, it’s just going to get in your way later.


Dan DeLeo