Update cookbooks and add wordpress cookbook

This commit is contained in:
Greg Karékinian
2016-02-19 18:09:49 +01:00
parent 9ba973e3ac
commit 820b0ab3f8
606 changed files with 22421 additions and 14084 deletions

View File

@@ -2,6 +2,8 @@
This cookbook provides an LWRP for installing https://packagecloud.io repositories.
NOTE: Please see the Changelog below for important changes if upgrading from 0.0.19 to 0.1.0.
## Usage
Be sure to depend on `packagecloud` in `metadata.rb` so that the packagecloud
@@ -25,6 +27,7 @@ end
```
For packagecloud:enterprise users, add `base_url` to your resource:
```
packagecloud_repo "computology/packagecloud-cookbook-test-private" do
base_url "https://packages.example.com"
@@ -33,6 +36,16 @@ packagecloud_repo "computology/packagecloud-cookbook-test-private" do
end
```
For forcing the os and dist for repository install:
```
packagecloud_repo 'computology/packagecloud-cookbook-test-public' do
type 'rpm'
force_os 'rhel'
force_dist '6.5'
end
```
Valid options for `type` include `deb`, `rpm`, and `gem`.
## Interactions with other cookbooks
@@ -60,5 +73,19 @@ the yum chef cookbook is set to the system default, unless you use the
`cachedir`, you should make sure to setup packagecloud repos after that
resource is set so that the GPG keys end up in the right place.
## Changelog
packagecloud cookbook versions 0.0.19 used an attribute called
`default['packagecloud']['hostname']` for caching the local machine's hostname
to avoid regenerating read tokens.
This attribute has been removed as it is confusing and in some edge cases,
buggy.
Beginning in 0.1.0, you can use
`default['packagecloud']['hostname_override']` to specify a hostname if ohai
is unable to determine the hostname of the node on its own.
## Credits
Computology, LLC.