cookbook 'mater', '~> 0.1.0'
mater (1) Versions 0.1.0 Follow0
Installs/Configures obfuscurity/mater.
cookbook 'mater', '~> 0.1.0', :supermarket
knife supermarket install mater
knife supermarket download mater
Description
Installs the latest build of Mater, a lightweight web application that bridges Graphite and StatusBoard.
Includes an optional recipe to install Unicorn and proxy to it with Apache.
Requirements
- Chef 0.9.x+
Platforms
Supported on:
- CentOS, Red Hat, Fedora
Tested on:
- CentOS 6.3 - 6.4
- Chef 0.9.14, 10.14.2
Dependencies
The following cookbooks are dependencies:
- git
The follow cookbooks are optional dependencies:
- apache2
- unicorn
Recipes
-
mater::apache
- Installs the latest version of Mater
- Installs Unicorn as a Rack server
- Installs Apache as a proxy
Attributes
Required Attributes
-
default['mater']['apache']['server_name]']
- Name of the virtual host for Apache e.g. the FQDN for Mater.
-
default['mater']['graphite']['url']
- URL to the graphite server.
-
default['mater']['unicorn']['bin']
- Path to the unicorn binary. Only required if not using RVM.
Optional Attributes
-
default['mater']['home']
- Base directory for Mater.
- Each deploy of Mater is installed within in a separate timestamped subdirectory.
- Most recent deploy is symlinked to the curent folder.
-
default['mater']['git']['url']
- GitHub URL for installing Mater.
-
default['mater']['git']['branch']
- Git branch for installer Mater. Defaults to master.
-
default['mater']['unicorn']['user']
- System user for Unicorn.
- Defaults to unicorn.
-
default['mater']['unicorn']['pid']['directory']
- Directory for unicorn pid file.
- Defaults to
/var/run/unicorn
-
default['mater']['unicorn']['pid']['file']
- Name of unicorn pid file.
- Defaults to
mater.pid
-
default['mater']['unicorn']['worker_timeout']
- Unicorn worker timeout in seconds.
- Defaults to 60.
-
default['mater']['unicorn']['preload_app']
- Preload the Mater application in Unicorn before forking worker processes.
- Defaults to true.
-
default['mater']['unicorn']['before_fork']
- Ruby proc to execute before forking each worker.
- Defaults to
sleep 1
-
default['mater']['unicorn']['port']
- Listening port for Unicorn.
- Defaults to 9080.
Usage
Add something like the following to your recipe or role:
node["mater"]["apache"]["server_name"] = "mater.graphite.example.com" node['mater']['graphite']['url'] = "https://graphite.example.com" node['mater']['unicorn']['bin'] = "/usr/bin/unicorn" include_recipe "mater::apache"
Note that you do not need to specify the path to Unicorn if you are running under RVM. The init script will automatically find Unicorn in that case.
License
- Author: Sean Laurent
- Copyright: 2013 StudyBlue, Inc.
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.
Dependent cookbooks
apache2 >= 0.0.0 |
git >= 0.0.0 |
unicorn >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 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.1.0 failed this metric
FC043: Prefer new notification syntax: mater/recipes/apache.rb:70
FC064: Ensure issues_url is set in metadata: mater/metadata.rb:1
FC065: Ensure source_url is set in metadata: mater/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mater/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mater/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: mater/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
0.1.0 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.1.0 failed this metric
FC043: Prefer new notification syntax: mater/recipes/apache.rb:70
FC064: Ensure issues_url is set in metadata: mater/metadata.rb:1
FC065: Ensure source_url is set in metadata: mater/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mater/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mater/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: mater/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
FC064: Ensure issues_url is set in metadata: mater/metadata.rb:1
FC065: Ensure source_url is set in metadata: mater/metadata.rb:1
FC066: Ensure chef_version is set in metadata: mater/metadata.rb:1
FC069: Ensure standardized license defined in metadata: mater/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: mater/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.0 passed this metric
Testing File Metric
0.1.0 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.1.0 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
0.1.0 failed this metric
0.1.0 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