All Projects → chef-boneyard → Bluepill

chef-boneyard / Bluepill

Licence: apache-2.0
Development repository for bluepill Chef Cookbook

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Bluepill

owncloud-cookbook
Chef cookbook to install and configure ownCloud.
Stars: ✭ 39 (+11.43%)
Mutual labels:  chef, cookbook
push-jobs-cookbook
Development repository for Chef Cookbook push-jobs
Stars: ✭ 21 (-40%)
Mutual labels:  chef, cookbook
chef-ingredient
Primitives for managing Chef products and packages
Stars: ✭ 43 (+22.86%)
Mutual labels:  chef, cookbook
chef-postgres-hardening
This chef cookbook provides security configuration for PostgreSQL.
Stars: ✭ 26 (-25.71%)
Mutual labels:  chef, cookbook
audit
Audit Cookbook for Chef Compliance
Stars: ✭ 58 (+65.71%)
Mutual labels:  chef, cookbook
postfixadmin-cookbook
Chef cookbook to install and configure PostfixAdmin.
Stars: ✭ 13 (-62.86%)
Mutual labels:  chef, cookbook
mysql tuning-cookbook
Chef cookbook to create MySQL configuraiton files better suited for your system.
Stars: ✭ 23 (-34.29%)
Mutual labels:  chef, cookbook
cookbook-cq
Chef cookbook for Adobe CQ (aka AEM)
Stars: ✭ 20 (-42.86%)
Mutual labels:  chef, cookbook
chef-ulimit
This is a simple chef cookbook that provides a defintion for managing user_ulimit settings.
Stars: ✭ 43 (+22.86%)
Mutual labels:  chef, cookbook
aix
Resources for AIX hosts
Stars: ✭ 22 (-37.14%)
Mutual labels:  chef, cookbook
omnibus
Prepares a machine to be an Omnibus builder. ┬──┬◡ノ(° -°ノ)
Stars: ✭ 28 (-20%)
Mutual labels:  chef, cookbook
sudo
Development repository for sudo cookbook
Stars: ✭ 119 (+240%)
Mutual labels:  chef, cookbook
delivery-truck
DEPRECATED: Delivery build cb for pipelines
Stars: ✭ 36 (+2.86%)
Mutual labels:  chef, cookbook
auditd
Install and configure user mode auditd tools
Stars: ✭ 31 (-11.43%)
Mutual labels:  chef, cookbook
ohai
Development repository for Chef Cookbook ohai
Stars: ✭ 49 (+40%)
Mutual labels:  chef, cookbook
chef-client
Development repository for Chef Client cookbook
Stars: ✭ 181 (+417.14%)
Mutual labels:  chef, cookbook
Arcgis Cookbook
Chef cookbooks for ArcGIS
Stars: ✭ 227 (+548.57%)
Mutual labels:  chef, cookbook
Windows
Development repository for Chef Cookbook windows
Stars: ✭ 251 (+617.14%)
Mutual labels:  chef, cookbook
chef client updater
Chef Cookbook to update the chef client on nodes
Stars: ✭ 51 (+45.71%)
Mutual labels:  chef, cookbook
heartbeat
Development repository for Chef Cookbook heartbeat
Stars: ✭ 13 (-62.86%)
Mutual labels:  chef, cookbook

bluepill Cookbook

Build Status Cookbook Version

Installs bluepill Ruby Gem and configures it to manage services. Also includes a LWRP.

Requirements

Platforms

Bluepill is a pure Ruby service management tool/library, so this cookbook should work on any system. The attributes do set up paths based on FHS locations, see below.

Chef

  • Chef 12.7+

Cookbooks

  • none

Attributes

Default locations for bluepill are in "FHS compliant" locations.

  • node["bluepill"]["bin"] - Path to bluepill program, default is 'bluepill' in the RubyGems binary directory.
  • node["bluepill"]["logfile"] - Location of the bluepill log file, default "/var/log/bluepill.log".
  • node["bluepill"]["conf_dir"] - Location of service config files (pills), default "/etc/bluepill".
  • node["bluepill"]["pid_dir"] - Location of pidfiles, default "/var/run/bluepill"
  • node["bluepill"]["state_dir"] - Location of state directory, default "/var/lib/bluepill"
  • node["bluepill"]["init_dir"] - Location of init script directory, default selected by platform.
  • node["bluepill"]["version"] - Version of bluepill to install, default is latest.
  • node["bluepill"]["use_rsyslog"] - Enable configuration and use of rsyslog for bluepill.

Resources

This cookbook contains a resource, bluepill_service. This can be used with the normal Chef service resource, by using the provider parameter, or by specifying the bluepill_service shortcut. These two resources are equivalent.

bluepill_service 'my_app' do
  action [:enable, :load, :start]
end

The load action should probably always be specified, to ensure that if bluepill isn't running already it gets started. The The recipe using the service must contain a template resource for the pill and it must be named my_app.pill.erb, where my_app is the service name passed to the bluepill service resource.

Usage

Be sure to include the bluepill recipe in the run list to ensure that the gem and bluepill-related directories are created. This will also make the cookbook available on the system and other cookbooks won't need to explicitly depend on it in the metadata.

If the default directory locations in the attributes/default.rb aren't what you want, change them by setting them either in the attributes file itself, or create attributes in a role applied to any systems that will use bluepill.

Bluepill uses configuration files named my_app.pill that are stored in /etc/bluepill. Here is an example pill:

Bluepill.application('my_app') do |app|
  app.process('my_app') do |process|
    process.pid_file = '/var/run/my_app.pid'
    process.start_command = '/usr/bin/my_app'
  end
end

You can create this file with cookbook_file as follows:

cookbook_file '/etc/bluepill/my_app.pill' do
  source 'my_app.pill'
end

See bluepill's documentation for more information on creating pill templates.

License & Authors

Author: Cookbook Engineering Team ([email protected])

Copyright: 2010-2016, Chef Software, 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].