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

RSS

ghost-blog (9) Versions 1.0.0

Installs & configures Ghost: open source blogging platform

Policyfile
Berkshelf
Knife
cookbook 'ghost-blog', '= 1.0.0', :supermarket
cookbook 'ghost-blog', '= 1.0.0'
knife supermarket install ghost-blog
knife supermarket download ghost-blog
README
Dependencies
Changelog
Quality 0%

ghostblog Cookbook

A Chef cookbook for building and managing a Ghost blog.

Requirements

nodejs and Chef:

  • nodejs
  • Chef 11+

Platforms

  • Ubuntu 12.04, 14.04

Cookbooks:

This cookbook depends on the following community cookbooks:

As of version 1.0 this cookbook is only tested on Ubuntu 12.04 & 14.04. As development is continued on CentOS,Debian and future Ubuntu versions will be supported. This cookbook is heavily configured via the attributes

Attributes

This cookbook's attributes are broken up into different categories.

General settings

  • node['ghost']['install_dir'] - Installation directory for Ghost. Default is /var/www/html/ghost
  • node['ghost']['version'] - Ghost blog version. Default is latest. Will also take old versions 0.5.9, 0.5.8, etc

Nginx settings

  • node['ghost']['nginx']['dir'] - Nginx directory. Default is /etc/nginx
  • node['ghost']['nginx']['script_dir'] - bin directory for scripts. Default is /usr/bin
  • node['ghost']['nginx']['server_name'] - Nginx server name. Default is ghostblog.com

Ghost app settings

  • node['ghost']['app']['server_url'] - Ghost app server url. Default is localhost
  • node['ghost']['app']['port'] - Ghost app port. Default is 2368
  • node['ghost']['app']['mail_transport_method'] - Ghost app mailing method. Default is SMTP.
  • node['ghost']['app']['mail_service'] - Name of Mail service to use with nodemailer. Default is nil. Supports Gmail,SES, & mailgun.
  • node['ghost']['app']['mail_user'] - Username for select mail service. Default is nil
  • node['ghost']['app']['mail_passwd'] - Password for selected mail user. Default is nil
  • node['ghost']['app']['db_type'] - Type of database to use with Ghost. Default is sqlite3. Supports sqlite3, and mysql.

Ghost AWS SES settings

  • node['ghost']['ses']['aws_secret_key'] - AWS Secret key. Default is nil
  • node['ghost']['ses']['aws_access_key'] - AWS Access key. Default is nil

Ghost MySQL settings

Note about MySQL option

Creating a local MySQL server/database is outside the scope of this cookbook. I am assuming if you are using the mysql option for node['ghost']['app']['db_type'] that
you already have a MySQL elsewhere such as AWS RDS or on another server. You could always wrap this cookbook and create your own MySQL instance.

  • node['ghost']['mysql']['host'] - MySQL host. Default is 127.0.0.1
  • node['ghost']['mysql']['user'] - MySQL user. Default is ghost_blog
  • node['ghost']['mysql']['passwd'] - MySQL password. Default is ChangePasswordQuick!
  • node['ghost']['mysql']['database'] - MySQL database name. Default is ghost_db
  • node['ghost']['mysql']['charset'] - MySQL charset. Default is utf8

Recipes

default

The main recipe. This will call all the additional recipes to configure and setup Ghost.

Usage

Using this cookbook is relatively straightforward. Add the default
recipe to the run list of a node, or create a role.

Dependent cookbooks

nodejs ~> 2.4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

ghostblog CHANGELOG

v1.0.0

  • Initial relase

Foodcritic Metric
            

1.0.0 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/_ghost.rb:10
FC002: Avoid string interpolation where not required: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/_ghost.rb:16
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/default.rb:12
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/default.rb:13
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/default.rb:16
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/default.rb:17
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/default.rb:19
FC013: Use file_cache_path rather than hard-coding tmp paths: /tmp/cook/64694e57ba03a8d10bec4aae/ghost-blog/recipes/_ghost.rb:1