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.

RSS

symfony_project (3) Versions 0.0.2

Cookbook for deploying Symfony2 projects.

Policyfile
Berkshelf
Knife
cookbook 'symfony_project', '= 0.0.2', :supermarket
cookbook 'symfony_project', '= 0.0.2'
knife supermarket install symfony_project
knife supermarket download symfony_project
README
Dependencies
Quality 100%

Build Status

Description

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

Requirements

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.

Platforms:

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

Attributes

NA

Resources / Providers

symfony_project

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.

Actions

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

Examples

#Deploy a Symfony project
symfony_project "/path/to/project" do
    repo 'git@github.com:foo_organization/bar_application.git'
    revision 'v1.2'
    git_ssh_wrapper '/tmp/ssh-wrapper.sh'
    action [:deploy, :set_permissions]
end

Options

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 bez@activelamp.com

Author: ActiveLAMP

Copyright: 2012-2014, ActiveLAMP

Apache 2.0 License

Dependent cookbooks

git ~> 4.0.2
activelamp_composer ~> 0.0.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

0.0.2 passed this metric