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 frog cookbook has been deprecated

Author provided reason for deprecation:

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

RSS

frog (4) Versions 1.0.3

Installs and configures the Frog Media Server

Policyfile
Berkshelf
Knife
cookbook 'frog', '~> 1.0.3', :supermarket
cookbook 'frog', '~> 1.0.3'
knife supermarket install frog
knife supermarket download frog
README
Dependencies
Changelog
Quality 17%

frog Cookbook

Build Status

Installs and configures the open source Frog Media Server.

Frog Media Server is an open source project designed to make sharing and maintaining large collections of images and video simple. It exposes an API that allows for easy integration with other applications. The built-in web frontend allows you to manage your media from any platform that supports JavaScript and HTML5.

Documentation: http://frog.readthedocs.org

GitHub: https://github.com/theiviaxx/Frog

Requirements

  • Chef 11.6 or higher

Supported Platforms

  • Ubuntu 12.04, 14.04
  • CentOS 6.4
  • Amazon 2014.03

Pull requests for additional platform support are welcome!

Attributes

Attributes are documented in-line. Please see the attributes source files for detailed information about the attributes that are available.

Recipes

default

Installs the full stack of services needed to run frog on a single machine. This is done by including all 3 of the other recipes provided by this cookbook.

server

Installs and configures the Frog application and Gunicorn application server.

Frog is a Django application. This cookbook creates a Django project and configures it to run the django-frog app. The Gunicorn server is used to run the Django application managed by runit.

database

Creates and configures the Frog database.

You can optionally use this cookbook to install the DBMS server binaries for your chosen database by setting node['frog']['db']['install_dbms'] to true. The node['frog']['db']['dbms'] attribute is used to control which DBMS system is installed and/or configured. Currently mysql is the only valid option.

If you would like to add additional database support, we would welcome the pull request!

Note: The community mysql cookbook is used to install the MySQL server software. Please read that recipes documentation for more information about customizing the MySQL server installation.

nginx

Installs and configures nginx as a reverse proxy to the Gunicorn application server.

Usage

This cookbook is designed to allow you to run each of the components on a single server, or across multiple servers. You may want to run only the web front end on one node and the database server on another node. By using a combination of the recipe's you can configure your Frog stack however you like.

If you plan to not run the entire software stack on a single host, be sure to change the applicable attributes so the software can find the required services.

Single Server

To run the entire Frog stack on a single node, include recipe[frog::default] in your run_list.

Front End App Server and Nginx Reverse Proxy

Include recipe[frog::server] and recipe[frog::nginx] in your run_list.

Applicable attributes:

  • default['frog']['db']['host']
  • default['frog']['db']['port']

Front End App Server Only

Include recipe[frog::server] in your run_list.

Applicable attributes:

  • default['frog']['db']['host']
  • default['frog']['db']['port']

Reverse Proxy Server Only

Include recipe[frog::nginx] to your run_list.

Applicable attributes:

  • default['frog']['settings']['media_root']
  • default['frog']['settings']['static_root']
  • default['frog']['settings']['url']

Database Server Only

Include recipe[frog::database] to your run_list.

Applicable Attributes:

  • default['frog']['db']['from_host']
  • default['frog']['db']['install_dbms']
  • default['frog']['db']['dbms']

Contributing

  1. Fork the repository on Github: https://help.github.com/articles/fork-a-repo
  2. Clone the repository locally:

    $ git clone http://github.com/nickryand/frog-cookbook.git

  3. Create a named feature branch:

    $ cd frog-cookbook
    $ git checkout -b [new feature branch]

  4. Add your change(s)

  5. Write tests for your change(s):

You can provide spec and/or integration tests for your changes. Pull requests without changes will sit until someone is able to write tests the verify the changes. This has the added benefit of possibly preventing regressions in the future.

  1. Install the gem dependencies:

    bundle install

  2. Run the integration and spec tests to ensure they all pass:

    bundle exec rake integration

  3. Run the style tests to ensure they all pass:

    bundle exec rake style

  4. Update the README.md with new information if applicable.

  5. Commit and push your changes up to your feature branch

  6. Submit a Pull Request

License and Authors

Copyright (C) 2014 Nick Downs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.0.3 /2014-08-24

Added an int cast to the port argument for the generate_url() function unless
the port argument is nil.

1.0.2 /2014-08-23

Updates to allow running the database on another server. ([@nickryand[])

  • Added libmysqlclient packages for each supported OS to the server recipe. This allows MySQL-python to properly build when the frog database is running on a remote server.
  • Reverse proxy fixes which allow you to properly setup Frog to run the entire application behind a reverse proxy. Previously it was not easy to configure Frog to hand out URL's that pointed to the proxy endpoint. That has been resolved.

1.0.1 /2014-08-19

Seperated out nginx frog attributes into it's own file.

  • Disabled the nginx default site
  • Increased Nginx proxy timeouts
  • Added an Nginx reload notification to catch config file updates

1.0.0 / 2014-07-14

Initial release (@nickryand)

Collaborator Number Metric
            

1.0.3 failed this metric

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

Contributing File Metric
            

1.0.3 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
            

1.0.3 failed this metric

FC064: Ensure issues_url is set in metadata: frog/metadata.rb:1
FC065: Ensure source_url is set in metadata: frog/metadata.rb:1
FC066: Ensure chef_version is set in metadata: frog/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: frog/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: frog/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: frog/recipes/_mysql.rb:29
FC122: Use the build_essential resource instead of the recipe: frog/recipes/_packages.rb:27
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

1.0.3 passed this metric

Testing File Metric
            

1.0.3 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
            

1.0.3 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