An application cookbook to deploy the funnies web application
- ubuntu 12.04
- chef 11.4.0
- encrypted data bag
Include the funnies recipe in your node run list
Then setup an encrypted data bag called 'funnies' with the 'env' item. The database is setup via the DATABASE_URL key in your 'env' data bag. For example:
postgres://funnies@localhost/production_db?pool=5
Will setup the funnies user with localhost and point to production_db with a pool of 5 connections.
First get your bundle installed with bundle install
After you complete your bundle install
Make sure you have Vagrant 1.2 or newer installed on your system
Then just run kitchen test
and watch your CPU burn
default['funnies']['default_database_url']
- The default database URL if one is not provideddefault['funnies']['revision']
- Revision to deploy (default is 'master')default['funnies']['migrate']
- Wether to run migrations (default is 'false')default['funnies']['ruby_version']
- Ruby version to install for the app (default is '2.0.0-p247')
- default - Installs dependcies and deploys funnies
Author:: Aaron Kalin (akalin@martinisoftware.com)
Copyright:: 2013, Aaron Kalin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.