Update cookbooks and add wordpress cookbook
This commit is contained in:
@@ -1,73 +1,81 @@
|
||||
v1.2.13 (2014-02-18)
|
||||
--------------------
|
||||
# xml Cookbook CHANGELOG
|
||||
This file is used to list changes made in each version of the xml cookbook.
|
||||
|
||||
## v2.0.0 (2015-12-07)
|
||||
- The 1.3.1 release pinned the nokogiri gem version to 1.6.2.1 to avoid compilation failure that occured at some point in time. The cookbook also prevented the user from setting the version attribute to a modern nokogiri release. Nokogiri no longer fails to install so there is no longer a reason to pin or gate the versions. This release removes the version attribute and instead installs the latest version, but still allows the user to set the version attribute to pin to a specific version.
|
||||
|
||||
## v1.3.1 (2015-10-12)
|
||||
- Fixed compile errors on Chef 11
|
||||
- Added an empty array of packages for unknown systems to prevent failures on Windows and other operating systems
|
||||
|
||||
## v1.3.0 (2015-10-06)
|
||||
- Added zlib1g-dev on Ubuntu / Debian to fix compiles
|
||||
- Add support for OS X
|
||||
- Add source_url and issues_url to metadata.rb for Supermarket
|
||||
- Updated readme to reflect that use_system_libraries actually defaults to false
|
||||
- Use compile_time attribute with chef_gem to avoid deprecation warnings
|
||||
- Update Chefspec tests to 4.X format
|
||||
- Add additional platforms to the Kitchen CI config
|
||||
- Use the standard Rubocop config and resolve all warnings
|
||||
- Add Ruby 2.1/2.2 to Travis and remove Ruby 1.9.3
|
||||
- Update Berksfile to 3.X format
|
||||
- Update contributing and testing docs
|
||||
- Update and expand testing dependencies in the Gemfile
|
||||
- Add maintainers.md and maintainers.toml files
|
||||
- Add cookbook version badge to the readme
|
||||
- Add Chef and platform requirements to the readme
|
||||
- Add Rakfile for simplified testing
|
||||
- Remove yum and build-essential from the Berksfile since these didn't need to be there
|
||||
- Update .gitignore and add chefignore to prevent extra files from being uploaded to the Chef server
|
||||
|
||||
## v1.2.13 (2014-02-18)
|
||||
- Reverting compile_time work
|
||||
|
||||
v1.2.12 (2014-02-18)
|
||||
--------------------
|
||||
## v1.2.12 (2014-02-18)
|
||||
- Fixing last patch to play nicely with Chef Sugar
|
||||
|
||||
v1.2.11 (2014-02-18)
|
||||
--------------------
|
||||
## v1.2.11 (2014-02-18)
|
||||
- Fixing chef_gem for Chef below 12.1.0
|
||||
|
||||
v1.2.10 (2014-02-17)
|
||||
--------------------
|
||||
## v1.2.10 (2014-02-17)
|
||||
- Being explicit about usage of the chef_gem's compile_time property.
|
||||
- Eliminating future deprecation warnings in Chef 12.1.0.
|
||||
|
||||
v1.2.9 (2014-12-10)
|
||||
-------------------
|
||||
## v1.2.9 (2014-12-10)
|
||||
- Re-release with stove 3.2.2 to get a metadata.rb
|
||||
|
||||
v1.2.8 (2014-12-09)
|
||||
-------------------
|
||||
## v1.2.8 (2014-12-09)
|
||||
- [#11] Fix warning message from build-essential
|
||||
- [#13] pin nokogiri to a working version
|
||||
|
||||
v1.2.6 (2014-06-17)
|
||||
-------------------
|
||||
## v1.2.6 (2014-06-17)
|
||||
- [COOK-4468] Only set ENV variable when needed
|
||||
|
||||
|
||||
v1.2.4 (2014-03-27)
|
||||
-------------------
|
||||
## v1.2.4 (2014-03-27)
|
||||
- [COOK-4474] - Bump apt and yum versions in Berksfile, Lock to build-essentials 1.4
|
||||
- [COOK-4468] - Set NOKOGIRI_USE_SYSTEM_LIBRARIES env variable
|
||||
|
||||
## v1.2.2 (2014-02-27)
|
||||
[COOK-4382] - Fix xml cookbook spec test [COOK-4304] - Set proper packages for SUSE 11
|
||||
|
||||
v1.2.2 (2014-02-27)
|
||||
-------------------
|
||||
[COOK-4382] - Fix xml cookbook spec test
|
||||
[COOK-4304] - Set proper packages for SUSE 11
|
||||
|
||||
|
||||
v1.2.1
|
||||
------
|
||||
## v1.2.1
|
||||
### Improvement
|
||||
- [COOK-4304](https://tickets.chef.io/browse/COOK-4304) - Now sets proper packages for SUSE 11
|
||||
|
||||
|
||||
v1.2.0
|
||||
------
|
||||
## v1.2.0
|
||||
### Improvement
|
||||
- **[COOK-3462](https://tickets.chef.io/browse/COOK-3462)** - Allow installing packages during compile time
|
||||
|
||||
|
||||
v1.1.2
|
||||
------
|
||||
## v1.1.2
|
||||
- [COOK-2059] - missing dependency on build-essential
|
||||
|
||||
v1.1.0
|
||||
------
|
||||
## v1.1.0
|
||||
- [COOK-1826] - support nokogiri chef_gem
|
||||
- [COOK-1902] - add support for archlinux
|
||||
|
||||
v1.0.4
|
||||
------
|
||||
## v1.0.4
|
||||
- [COOK-1232] - add xslt to xml cookbook
|
||||
|
||||
v1.0.2
|
||||
------
|
||||
## v1.0.2
|
||||
- [COOK-953] - Add FreeBSD support
|
||||
- [COOK-775] - Add Amazon Linux support
|
||||
|
||||
|
||||
2
cookbooks/xml/CONTRIBUTING.md
Normal file
2
cookbooks/xml/CONTRIBUTING.md
Normal file
@@ -0,0 +1,2 @@
|
||||
Please refer to
|
||||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
|
||||
19
cookbooks/xml/MAINTAINERS.md
Normal file
19
cookbooks/xml/MAINTAINERS.md
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- 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)
|
||||
* [Sean OMeara](https://github.com/someara)
|
||||
* [Tim Smith](https://github.com/tas50)
|
||||
* [Thom May](https://github.com/thommay)
|
||||
@@ -1,22 +1,28 @@
|
||||
XML Cookbook
|
||||
============
|
||||
[](http://travis-ci.org/chef-cookbooks/xml)
|
||||
# XML Cookbook
|
||||
[](http://travis-ci.org/chef-cookbooks/xml) [](https://supermarket.chef.io/cookbooks/xml)
|
||||
|
||||
Installs development package for libxml.
|
||||
|
||||
## Requirements
|
||||
### Platforms
|
||||
- Debian/Ubuntu
|
||||
- RHEL/CentOS/Scientific/Amazon/Oracle
|
||||
- Arch Linux
|
||||
- Suse
|
||||
- FreeBSD
|
||||
|
||||
Requirements
|
||||
------------
|
||||
Debian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE, ArchLinux
|
||||
### Chef
|
||||
- Chef 11+
|
||||
|
||||
Attributes
|
||||
----------
|
||||
### Cookbooks
|
||||
- build-essential
|
||||
- chef-sugar
|
||||
|
||||
## Attributes
|
||||
- `node['xml']['packages']` - Array of package names that should be installed
|
||||
- `node['xml']['nokogiri']['use_system_libraries']` - Whether to use system libraries for nokogiri (defaults to `true`)
|
||||
- `node['xml']['nokogiri']['use_system_libraries']` - Whether to use system libraries for nokogiri (defaults to `false`)
|
||||
|
||||
|
||||
Recipes
|
||||
-------
|
||||
## Recipes
|
||||
### default
|
||||
Installs the development packages for libxml2 and libxslt.
|
||||
|
||||
@@ -28,16 +34,14 @@ include_recipe 'xml::default'
|
||||
```
|
||||
|
||||
### ruby
|
||||
Installs the nokogiri gem into Chef's Ruby environment so it can be used in recipes.
|
||||
Installs the nokogiri gem into Chef's Ruby environment so it can be used in recipes. If nokogiri is being installed using the system's libxml package your distro must include version 2.6.21 or later. Due to this Debian 7 or earlier / Ubuntu 12.04 or earlier will not work with the system library attribute enabled.
|
||||
|
||||
## License & Authors
|
||||
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
|
||||
|
||||
License & Authors
|
||||
-----------------
|
||||
- Author:: Joshua Timberman (<joshua@chef.io>)
|
||||
|
||||
```text
|
||||
Copyright 2009-2013, Chef Software, Inc.
|
||||
**Copyright:** 2009-2015, 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
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#
|
||||
# Cookbook Name:: xml
|
||||
# Recipe:: default
|
||||
# Attributes:: default
|
||||
#
|
||||
# Copyright 2010-2013, Chef Software, Inc.
|
||||
# Copyright 2009-2015, 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.
|
||||
@@ -22,14 +22,15 @@ default['xml']['compiletime'] = false
|
||||
case node['platform_family']
|
||||
when 'rhel', 'fedora', 'suse'
|
||||
default['xml']['packages'] = %w(libxml2-devel libxslt-devel)
|
||||
when 'ubuntu', 'debian'
|
||||
default['xml']['packages'] = %w(libxml2-dev libxslt-dev)
|
||||
when 'debian'
|
||||
default['xml']['packages'] = %w(libxml2-dev libxslt-dev zlib1g-dev)
|
||||
when 'freebsd', 'arch'
|
||||
default['xml']['packages'] = %w(libxml2 libxslt)
|
||||
when 'mac_os_x'
|
||||
default['xml']['packages'] = %w(libxml2)
|
||||
else
|
||||
default['xml']['packages'] = []
|
||||
end
|
||||
|
||||
default['xml']['nokogiri']['use_system_libraries'] = false
|
||||
|
||||
# Newest versions will not compile with system libraries
|
||||
# https://github.com/sparklemotion/nokogiri/issues/1099
|
||||
default['xml']['nokogiri']['version'] = '1.6.2.1'
|
||||
default['xml']['nokogiri']['version'] = nil
|
||||
|
||||
@@ -1,42 +1 @@
|
||||
{
|
||||
"name": "xml",
|
||||
"version": "1.2.13",
|
||||
"description": "Installs xml",
|
||||
"long_description": "XML Cookbook\n============\n[](http://travis-ci.org/chef-cookbooks/xml)\n\nInstalls development package for libxml.\n\n\nRequirements\n------------\nDebian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE, ArchLinux\n\nAttributes\n----------\n- `node['xml']['packages']` - Array of package names that should be installed\n- `node['xml']['nokogiri']['use_system_libraries']` - Whether to use system libraries for nokogiri (defaults to `true`)\n\n\nRecipes\n-------\n### default\nInstalls the development packages for libxml2 and libxslt.\n\nFor installing the packages during compile time:\n\n```ruby\nnode.set['xml']['compiletime'] = true\ninclude_recipe 'xml::default'\n```\n\n### ruby\nInstalls the nokogiri gem into Chef's Ruby environment so it can be used in recipes.\n\n\nLicense & Authors\n-----------------\n- Author:: Joshua Timberman (<joshua@chef.io>)\n\n```text\nCopyright 2009-2013, Chef Software, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n",
|
||||
"maintainer": "Chef Software, Inc.",
|
||||
"maintainer_email": "cookbooks@chef.io",
|
||||
"license": "Apache 2.0",
|
||||
"platforms": {
|
||||
"amazon": ">= 0.0.0",
|
||||
"arch": ">= 0.0.0",
|
||||
"centos": ">= 0.0.0",
|
||||
"debian": ">= 0.0.0",
|
||||
"fedora": ">= 0.0.0",
|
||||
"freebsd": ">= 0.0.0",
|
||||
"redhat": ">= 0.0.0",
|
||||
"scientific": ">= 0.0.0",
|
||||
"suse": ">= 0.0.0",
|
||||
"ubuntu": ">= 0.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"build-essential": ">= 0.0.0",
|
||||
"chef-sugar": ">= 0.0.0"
|
||||
},
|
||||
"recommendations": {
|
||||
},
|
||||
"suggestions": {
|
||||
},
|
||||
"conflicting": {
|
||||
},
|
||||
"providing": {
|
||||
},
|
||||
"replacing": {
|
||||
},
|
||||
"attributes": {
|
||||
},
|
||||
"groupings": {
|
||||
},
|
||||
"recipes": {
|
||||
"xml": "Installs libxml development packages"
|
||||
}
|
||||
}
|
||||
{"name":"xml","version":"2.0.0","description":"Installs xml","long_description":"# XML Cookbook\n[](http://travis-ci.org/chef-cookbooks/xml) [](https://supermarket.chef.io/cookbooks/xml)\n\nInstalls development package for libxml.\n\n## Requirements\n### Platforms\n- Debian/Ubuntu\n- RHEL/CentOS/Scientific/Amazon/Oracle\n- Arch Linux\n- Suse\n- FreeBSD\n\n### Chef\n- Chef 11+\n\n### Cookbooks\n- build-essential\n- chef-sugar\n\n## Attributes\n- `node['xml']['packages']` - Array of package names that should be installed\n- `node['xml']['nokogiri']['use_system_libraries']` - Whether to use system libraries for nokogiri (defaults to `false`)\n\n## Recipes\n### default\nInstalls the development packages for libxml2 and libxslt.\n\nFor installing the packages during compile time:\n\n```ruby\nnode.set['xml']['compiletime'] = true\ninclude_recipe 'xml::default'\n```\n\n### ruby\nInstalls the nokogiri gem into Chef's Ruby environment so it can be used in recipes. If nokogiri is being installed using the system's libxml package your distro must include version 2.6.21 or later. Due to this Debian 7 or earlier / Ubuntu 12.04 or earlier will not work with the system library attribute enabled.\n\n## License & Authors\n**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))\n\n**Copyright:** 2009-2015, Chef Software, Inc.\n\n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","maintainer":"Chef Software, Inc.","maintainer_email":"cookbooks@chef.io","license":"Apache 2.0","platforms":{"amazon":">= 0.0.0","arch":">= 0.0.0","centos":">= 0.0.0","debian":">= 0.0.0","fedora":">= 0.0.0","freebsd":">= 0.0.0","oracle":">= 0.0.0","redhat":">= 0.0.0","scientific":">= 0.0.0","suse":">= 0.0.0","ubuntu":">= 0.0.0"},"dependencies":{"build-essential":">= 0.0.0","chef-sugar":">= 0.0.0"},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{"xml":"Installs libxml development packages"}}
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cookbook Name:: xml
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright 2010-2013, Chef Software, Inc.
|
||||
# Copyright 2010-2015, 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.
|
||||
|
||||
@@ -32,15 +32,11 @@ include_recipe 'build-essential::default'
|
||||
include_recipe 'xml::default'
|
||||
|
||||
if node['xml']['nokogiri']['use_system_libraries']
|
||||
if node['xml']['nokogiri']['version'].nil? ||
|
||||
version(node['xml']['nokogiri']['version']).satisfies?('> 1.6.1')
|
||||
Chef::Application.fatal!("You must specify a version less than or equal to 1.6.1 of nokogiri to use system libraries. You set: #{node['xml']['nokogiri']['version']}.")
|
||||
else
|
||||
ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] = node['xml']['nokogiri']['use_system_libraries'].to_s
|
||||
end
|
||||
ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] = node['xml']['nokogiri']['use_system_libraries'].to_s
|
||||
end
|
||||
|
||||
chef_gem 'nokogiri' do
|
||||
version node['xml']['nokogiri']['version']
|
||||
version node['xml']['nokogiri']['version'] if node['xml']['nokogiri']['version']
|
||||
action :install
|
||||
compile_time true if defined? compile_time
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user