Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -2,6 +2,36 @@ Chef Sugar Changelog
|
||||
=========================
|
||||
This file is used to list changes made in each version of the chef-sugar cookbook and gem.
|
||||
|
||||
v3.3.0 (2016-01-11)
|
||||
-------------------
|
||||
### Improvements
|
||||
- Break up `Chef::Sugar::Constraints` into a class and a dsl file
|
||||
- Add `platform_version` method with full constraints comparison support
|
||||
|
||||
v3.2.0 (2015-12-10)
|
||||
-------------------
|
||||
### Improvements
|
||||
- Add platform matchers for `debian` and `fedora`
|
||||
- Add `openvz` support under virtualization
|
||||
- Add init system detection support
|
||||
- Add support for `nexus`, `ios_xr` platforms and `wrlinux` platform_family
|
||||
- Add additional `aix` helpers
|
||||
|
||||
### Bug Fixes
|
||||
- Properly expose `Architecture#i386?` in the DSL
|
||||
|
||||
v3.1.1 (2015-06-23)
|
||||
-------------------
|
||||
### Improvements
|
||||
- Update Intel CPU types based on existing Fauxhai data
|
||||
- Update SPARC logic and 32/64-bit logic for x86 and i386
|
||||
|
||||
### Bug Fixes
|
||||
- Fix 32-bit logic
|
||||
- Fix default behavior to include chef-sugar at compile time
|
||||
- Fix Chef 12.1.0 warnings for chef_gem compile time install
|
||||
- Fix `redhat_enterprise_linux?` matcher
|
||||
|
||||
v3.0.2 (2015-03-26)
|
||||
-------------------
|
||||
### Improvements
|
||||
|
||||
20
cookbooks/chef-sugar/CONTRIBUTING.md
Normal file
20
cookbooks/chef-sugar/CONTRIBUTING.md
Normal file
@@ -0,0 +1,20 @@
|
||||
Contributing to Chef Sugar
|
||||
===============================
|
||||
The process for contributing to Chef sugar is rather straight-forward. It is unlikely that you'll need to modify the actual Chef recipe, so it's assumed that you want to work on the Gem itself.
|
||||
|
||||
1. Fork the repository on GitHub.
|
||||
2. Clone your fork.
|
||||
3. Create a new, semantically-named branch:
|
||||
|
||||
$ git checkout -b my_feature_branch
|
||||
|
||||
4. Make any changes, ensuring you write adequate test coverage.
|
||||
5. Document your changes (YARD).
|
||||
6. Run the tests (make sure they pass).
|
||||
7. Submit a Pull Request on GitHub.
|
||||
8. (optional) Ping me on Twitter (@sethvargo)
|
||||
|
||||
Additionally, please **DO NOT**:
|
||||
- Modify the version of the cookbook or gem.
|
||||
- Update the CHANGELOG
|
||||
- Make unnecessary changes to the gemspec
|
||||
@@ -4,7 +4,7 @@ Chef Sugar
|
||||
[][travis]
|
||||
|
||||
[gem]: https://rubygems.org/gems/chef-sugar
|
||||
[travis]: http://travis-ci.org/sethvargo/chef-suguar
|
||||
[travis]: http://travis-ci.org/sethvargo/chef-sugar
|
||||
|
||||
Chef Sugar is a Gem & Chef Recipe that includes series of helpful sugar of the Chef core and other resources to make a cleaner, more lean recipe DSL, enforce DRY principles, and make writing Chef recipes an awesome experience!
|
||||
|
||||
@@ -82,6 +82,7 @@ API
|
||||
- `sparc?`
|
||||
- `ppc64?`
|
||||
- `ppc64le?`
|
||||
- `powerpc?`
|
||||
|
||||
#### Examples
|
||||
```ruby
|
||||
@@ -249,6 +250,31 @@ class Chef
|
||||
end
|
||||
```
|
||||
|
||||
### Init
|
||||
- `systemd?` - detect if init system is systemd
|
||||
- `upstart?` - detect if init system is upstart
|
||||
- `runit?` - detect if init system is runit
|
||||
|
||||
#### Examples
|
||||
```ruby
|
||||
systemd_service 'my-service' do
|
||||
description 'My Service'
|
||||
install do
|
||||
wanted_by 'multi-user.target'
|
||||
end
|
||||
service do
|
||||
exec_start '/usr/bin/myserviced'
|
||||
end
|
||||
action [:create, :enable, :start]
|
||||
only_if { systemd? }
|
||||
end
|
||||
|
||||
cookbook_file '/etc/init/my-service.conf' do
|
||||
source 'my-service.conf'
|
||||
only_if { upstart? }
|
||||
end
|
||||
```
|
||||
|
||||
### IP
|
||||
- `best_ip_for` - determine the best IP address for the given "other" node, preferring local IP addresses over public ones.
|
||||
|
||||
@@ -296,6 +322,9 @@ node.deep_fetch('apache2', 'config', 'root') => node['apache2']['config']['root'
|
||||
- `aix?`
|
||||
- `smartos?`
|
||||
- `omnios?`
|
||||
- `raspbian?`
|
||||
- `nexus?`
|
||||
- `ios_xr?`
|
||||
|
||||
There are also a series of dynamically defined matchers that map named operating system release versions and comparison operators in the form "#{platform}\_#{operator}\_#{name}?". For example:
|
||||
|
||||
@@ -334,6 +363,7 @@ end
|
||||
- `slackware?`
|
||||
- `suse?`
|
||||
- `windows?`
|
||||
- `wrlinux?`
|
||||
|
||||
#### Examples
|
||||
```ruby
|
||||
@@ -404,6 +434,7 @@ end
|
||||
- `lxc?`
|
||||
- `virtualbox?`
|
||||
- `vmware?`
|
||||
- `openvz?`
|
||||
|
||||
#### Examples
|
||||
```ruby
|
||||
|
||||
@@ -1,29 +1 @@
|
||||
{
|
||||
"name": "chef-sugar",
|
||||
"version": "3.1.0",
|
||||
"description": "Installs chef-sugar. Please see the chef-sugar Ruby gem for more information.",
|
||||
"long_description": "Chef Sugar is a Gem & Chef Recipe that includes series of helpful syntactic\nsugars on top of the Chef core and other resources to make a cleaner, more lean\nrecipe DSL, enforce DRY principles, and make writing Chef recipes an awesome and\nfun experience!\n\nFor the most up-to-date information and documentation, please visit the [Chef\nSugar project page on GitHub](https://github.com/sethvargo/chef-sugar).\n",
|
||||
"maintainer": "Seth Vargo",
|
||||
"maintainer_email": "sethvargo@gmail.com",
|
||||
"license": "Apache 2.0",
|
||||
"platforms": {
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"recommendations": {
|
||||
},
|
||||
"suggestions": {
|
||||
},
|
||||
"conflicting": {
|
||||
},
|
||||
"providing": {
|
||||
},
|
||||
"replacing": {
|
||||
},
|
||||
"attributes": {
|
||||
},
|
||||
"groupings": {
|
||||
},
|
||||
"recipes": {
|
||||
}
|
||||
}
|
||||
{"name":"chef-sugar","version":"3.3.0","description":"Installs chef-sugar. Please see the chef-sugar Ruby gem for more information.","long_description":"Chef Sugar is a Gem & Chef Recipe that includes series of helpful syntactic\nsugars on top of the Chef core and other resources to make a cleaner, more lean\nrecipe DSL, enforce DRY principles, and make writing Chef recipes an awesome and\nfun experience!\n\nFor the most up-to-date information and documentation, please visit the [Chef\nSugar project page on GitHub](https://github.com/sethvargo/chef-sugar).\n","maintainer":"Seth Vargo","maintainer_email":"sethvargo@gmail.com","license":"Apache 2.0","platforms":{},"dependencies":{},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{}}
|
||||
@@ -19,9 +19,16 @@
|
||||
|
||||
gem_version = run_context.cookbook_collection[cookbook_name].metadata.version
|
||||
|
||||
chef_gem('chef-sugar') do
|
||||
version gem_version
|
||||
action :nothing
|
||||
end.run_action(:install)
|
||||
if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)
|
||||
chef_gem 'chef-sugar' do
|
||||
version gem_version
|
||||
compile_time true
|
||||
end
|
||||
else
|
||||
chef_gem 'chef-sugar' do
|
||||
version gem_version
|
||||
action :nothing
|
||||
end.run_action(:install)
|
||||
end
|
||||
|
||||
require 'chef/sugar'
|
||||
|
||||
Reference in New Issue
Block a user