cookbook 'frog', '= 1.0.1'
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.
frog (4) Versions 1.0.1 Follow0
Installs and configures the Frog Media Server
cookbook 'frog', '= 1.0.1', :supermarket
knife supermarket install frog
knife supermarket download frog
frog Cookbook
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
- Fork the repository on Github: https://help.github.com/articles/fork-a-repo
-
Clone the repository locally:
$ git clone http://github.com/nickryand/frog-cookbook.git
-
Create a named feature branch:
$ cd frog-cookbook
$ git checkout -b [new feature branch] Add your change(s)
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.
-
Install the gem dependencies:
bundle install
-
Run the integration and spec tests to ensure they all pass:
bundle exec rake integration
-
Run the style tests to ensure they all pass:
bundle exec rake style
Update the README.md with new information if applicable.
Commit and push your changes up to your feature branch
Submit a Pull Request
License and Authors
- Author:: Nick Downs (nickryand@gmail.com)
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.
Dependent cookbooks
database ~> 2.2.0 |
python ~> 1.4.6 |
openssl ~> 1.1.0 |
runit ~> 1.5.10 |
mysql ~> 5.3.6 |
gunicorn ~> 1.1.6 |
nginx ~> 2.7.4 |
chef-sugar ~> 2.0.0 |
yum ~> 3.2.2 |
build-essential ~> 2.0.4 |
apt ~> 2.4.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
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)