Closed odolbeau closed 10 years ago
Replace if
by unless
done. :)
I like where you're going with this. I think the more ideal way would be to split the package into 3 recipes: default (empty), install, and setup/configure. Having an empty recipe would make it easy to include the cookbook externally to access the attributes (i.e. wrapper cookbooks). Splitting install versus configure seems like the more cheffy way of doing things as you could then just say to configure a node or more easily write a wrapper to install you're own way but use the existing configure code.
I have a local fork of this cookbook where I do exactly this. Much of this can be achieved by simply removing include_recipe "php-fpm"
on line https://github.com/yevgenko/cookbook-php-fpm/blob/master/definitions/php_fpm_pool.rb#L24 . So long as you install the package prior, you can then call the definition. To have this cookbook do the installation, simply include_recipe "php-fpm"
in your own cookbook.
What do you think about this @yevgenko ? Should I move the configuration in a separate recipe ?
@odolbeau I think this makes sense @stoltan thank you for proposing concept
Split done. I keep the repository recipe but it's probably not so useful so I can merge it with the install one if you prefer.
sorry for the late reply guys, I been a little bit busy with relocation and then with my job... but now looking forward to merge it soon :)
@odolbeau please see my comments, I'm also thinking that we might need to update README file
anyway I believe we are good to go, since it backward compatible and I don't really want to delay it anymore, so, going to test and will merge if no serious problems ;)
Seems fine for me. :) What do you think about it @stoltan ? @ameir ?
meet php-fpm v0.6.9 release with all above changes http://community.opscode.com/cookbooks/php-fpm
Thank you everyone! :+1:
Thank you ! :D
Fixed #16
I have the same need as describe in the issue but I just don't want dotdeb packages on my server.
With this new attribute it's easy to skip the repository installation.