Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The symfony_project cookbook has been deprecated

Author provided reason for deprecation:

The symfony_project cookbook has been deprecated and is no longer being maintained by its authors. Use of the symfony_project cookbook is no longer recommended.

You may find that the activelamp_symfony cookbook is a suitable alternative.


symfony_project (3) Versions 0.0.3

Cookbook for deploying Symfony2 projects.

cookbook 'symfony_project', '= 0.0.3', :supermarket
cookbook 'symfony_project', '= 0.0.3'
knife supermarket install symfony_project
knife supermarket download symfony_project
Quality 100%

Build Status


This cookbook provides an easy way to deploy a Symfony2 application, as well as run console commands on it.


This does not have any hard dependencies on other cookbooks. However you would obviously need the version of PHP you need to run the Symfony application, and of course Composer. You have the choice of which cookbooks you want to use to have this ready on your nodes.


  • Tested on Ubuntu/Debian only, but the deploy actions should work with any platform. However, there is no provider to handle :set_permissions on Windows at the moment.



Resources / Providers


This resource simply extends the built-in deploy resource, but provides sensible defaults that are relevant to most Symfony projects. For example, symlinks are automatically created for app/logs, app/cache, and vendor into the shared folder so that they persist between deploys. web/media/uploads is also automatically symlinked. You can override these links by specifying the shared_dirs option in the resource.


  • All actions supported by the deploy resource.
  • :set_permissions - Sets the permissions of app/logs, app/cache, and other shared folders you specify.


#Deploy a Symfony project
symfony_project "/path/to/project" do
    repo ''
    revision 'v1.2'
    git_ssh_wrapper '/tmp/'
    action [:deploy, :set_permissions]


All options for the deploy resource is applicable here. However here are additional options that are symfony_project-specific:

Option Default Description
shared_dirs {'logs' => 'app/logs','cache' => 'app/cache','uploads' => 'web/media/uploads','vendor' => 'vendor'} The directories to create under the shared directory and symlinked into every deployment.
permission_provider Chef::Provider::SymfonyPermission::Setfacl The provider that handles the setting of the appropriate permissions on the shared directories, most notably app/logs and app/cache. Only relevant on :set_permissions. You can also substitute this for Chef::Provider::SymfonyPermission::Chmod if your nodes support the chmod +a flag.
web_user "www-data" The user to whom permission will be granted. Only relevant on :set_permissions

License and Authors

Author: Bez Hermoso

Author: ActiveLAMP

Copyright: 2012-2014, ActiveLAMP

Apache 2.0 License

Dependent cookbooks

activelamp_composer ~> 0.0.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.0.3 passed this metric