Update upstream cookbooks

This commit is contained in:
Greg Karékinian
2017-03-20 13:19:10 +00:00
parent bfd2d52ea8
commit bcfd44b923
340 changed files with 12576 additions and 5465 deletions

View File

@@ -0,0 +1 @@
~FC059

View File

@@ -1,15 +1,21 @@
bluepill Cookbook CHANGELOG
===========================
# bluepill Cookbook CHANGELOG
This file is used to list changes made in each version of the bluepill cookbook.
2.4.1 (11-10-2015)
------
## 2.4.3 (04-18-2016)
- Added ChefSpec custom matchers and examples
## 2.4.2 (02-19-2016)
- Loosened the dependecy on rsyslog so the latest cookbook can be used
- Updated testing dependencies and configurations
WARNING: It was noted after the release of 2.4.2 that the loosened dependency on rsyslog increased the minimum required Chef release to 12.0 for this cookbook. Chef 11 users will need to use 2.4.1.
## 2.4.1 (11-10-2015)
- Require rsyslog ~> 2.0.0 to preserve Chef 11 compatibility
- Fix rsyslog restarting on RHEL
- Use platform_family when setting platform specific node attributes and fix bad syntax. This should improve RHEL support
v2.4.0 (09-17-2015)
------
## v2.4.0 (09-17-2015)
- Updated the LSB Required-Start and Required-Stop comments of the LSB init script template to be valid
- Added name to the bluepill_test cookbook metadata for Chef 12
- If a defaults file on RHEL or Debian based systems exist for the service source that within the init scripts. Example if /etc/default/bar exists on debian for the bar service then source that
@@ -27,72 +33,55 @@ v2.4.0 (09-17-2015)
- Added a chefignore file and added additional files to the gitignore
- Added source_url and issues_url metadata for Supermarket
v2.3.2
------
## v2.3.2
- Never actually released
v2.3.1
------
## v2.3.1
### New Feature
- **[COOK-3705](https://tickets.chef.io/browse/COOK-3705)** - Add init.d script with LSB style
v2.3.0
------
## v2.3.0
### Improvement
- **[COOK-3503](https://tickets.chef.io/browse/COOK-3503)** - Add why-run support
v2.2.2
------
## v2.2.2
- [COOK-2507] - stringify language attributes
v2.2.0
------
## v2.2.0
- [COOK-547] - Add `load` action to provider to reload services when template changes.
v2.1.0
------
## v2.1.0
- [COOK-1295] - The bluepill cookbook does not create the default log file
- [COOK-1840] - Enable bluepill to log to rsyslog
v2.0.0
------
## v2.0.0
This version uses platform_family attribute (in the provider), making the cookbook incompatible with older versions of Chef/Ohai, hence the major version bump.
- [COOK-1644] - Bluepill cookbook fails on Redhat due to missing default or redhat template directory.
- [COOK-1920] - init script should have a template file named after platform_family instead of using file specificity
v1.1.2
------
## v1.1.2
- [COOK-1730] - Add ability to specify which version of bluepill to install
v1.1.0
------
## v1.1.0
- [COOK-1592] - use mixlib-shellout instead of execute, add test-kitchen
v1.0.6
------
## v1.0.6
- [COOK-1304] - support amazon linux
- [COOK-1427] - resolve foodcritic warnings
v1.0.4
------
## v1.0.4
- [COOK-1106] - fix chkconfig loader for CentOS 5
- [COOK-1107] - use integer for GID instead of string
v1.0.2
------
## v1.0.2
- [COOK-1043] - Bluepill cookbook fails on OS X because it tries to use root group
v1.0.0
------
## v1.0.0
- [COOK-943] - add init script for freebsd
v0.3.0
------
## v0.3.0
- [COOK-867] - enable bluepill service on RHEL family
- [COOK-550] - add freebsd support
v0.2.2
------
## v0.2.2
- Fixes COOK-524, COOK-632

View File

@@ -0,0 +1,2 @@
Please refer to
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

View File

@@ -0,0 +1,18 @@
<!-- This is a generated file. Please do not edit directly -->
# Maintainers
This file lists how this cookbook project is maintained. When making changes to the system, this
file tells you who needs to review your patch - you need a simple majority of maintainers
for the relevant subsystems to provide a :+1: on your pull request. Additionally, you need
to not receive a veto from a Lieutenant or the Project Lead.
Check out [How Cookbooks are Maintained](https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD)
for details on the process and how to become a maintainer or the project lead.
# Project Maintainer
* [Tim Smith](https://github.com/tas50)
# Maintainers
* [Jennifer Davis](https://github.com/sigje)
* [Tim Smith](https://github.com/tas50)
* [Thom May](https://github.com/thommay)

View File

@@ -1,40 +1,30 @@
bluepill Cookbook
=================
[![Build Status](https://travis-ci.org/chef-cookbooks/bluepill.svg?branch=master)](https://travis-ci.org/chef-cookbooks/bluepill)
[![Cookbook Version](https://img.shields.io/cookbook/v/bluepill.svg)](https://supermarket.chef.io/cookbooks/bluepill)
# bluepill Cookbook
[![Build Status](https://travis-ci.org/chef-cookbooks/bluepill.svg?branch=master)](https://travis-ci.org/chef-cookbooks/bluepill) [![Cookbook Version](https://img.shields.io/cookbook/v/bluepill.svg)](https://supermarket.chef.io/cookbooks/bluepill)
Installs bluepill Ruby Gem and configures it to manage services. Also includes a LWRP.
Requirements
------------
#### Platforms
## 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 11+
### Chef
- Chef 12+
#### Cookbooks
### Cookbooks
- none
Attributes
----------
## 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.
* `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/Providers
-------------------
# Custom Resources
This cookbook contains an LWRP, `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.
```ruby
@@ -52,9 +42,7 @@ The load action should probably always be specified, to ensure that if bluepill
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
-----
## 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.
@@ -76,11 +64,35 @@ end
See bluepill's documentation for more information on creating pill templates.
## Testing
This cookbook has the following [ChefSpec custom matchers](https://github.com/sethvargo/chefspec#packaging-custom-matchers) defined:
License & Authors
-----------------
- enable_bluepill_service
- load_bluepill_service
- reload_bluepill_service
- start_bluepill_service
- disable_bluepill_service
- stop_bluepill_service
- restart_bluepill_service
**Author:** Cookbook Engineering Team (<cookbooks@chef.io>)
### ChefSpec Examples:
```
it 'enables my_app bluepill service' do
chef_run.converge('my_app::default', described_recipe)
expect(chef_run).to enable_bluepill_service('my_app')
end
it 'reloads my_app bluepill service when pill file changes' do
chef_run.converge('my_app::default', described_recipe)
expect(chef_run).to create_template('/etc/bluepill/my_app.pill')
my_app_pill = chef_run.template('/etc/bluepill/my_app.pill')
expect(my_app_pill).to notify('bluepill_service[my_app]').to(:reload).delayed
end
```
## License & Authors
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
**Copyright:** 2010-2015, Chef Software, Inc.

View File

@@ -0,0 +1,33 @@
if defined?(ChefSpec)
ChefSpec.define_matcher(:bluepill_service)
def enable_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :enable, service)
end
def load_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :load, service)
end
def reload_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :reload, service)
end
def start_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :start, service)
end
def disable_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :disable, service)
end
def stop_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :stop, service)
end
def restart_bluepill_service(service)
ChefSpec::Matchers::ResourceMatcher.new(:bluepill_service, :restart, service)
end
end

File diff suppressed because one or more lines are too long