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

Cookbook for deploying Symfony2 projects.

Policyfile
Berkshelf
Knife
cookbook 'symfony_project', '~> 0.0.4', :supermarket
cookbook 'symfony_project', '~> 0.0.4'
knife supermarket install symfony_project
knife supermarket download symfony_project
README
Dependencies
Quality 17%

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

activelamp_composer ~> 0.0.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.4 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.0.4 failed this metric

FC064: Ensure issues_url is set in metadata: symfony_project/metadata.rb:1
FC065: Ensure source_url is set in metadata: symfony_project/metadata.rb:1
FC066: Ensure chef_version is set in metadata: symfony_project/metadata.rb:1
FC069: Ensure standardized license defined in metadata: symfony_project/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.0.4 passed this metric

Testing File Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.0.4 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number