Skip to content

Commit 08e8dc7

Browse files
committed
Merge branch 'master' of github.com:zuazo/ssl_certificate-cookbook
2 parents 4c0b63e + fed0e54 commit 08e8dc7

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Diff for: .travis.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
rvm:
2-
- 2.2
3-
- 2.3
1+
rvm: 2.3
42

53
sudo: required
64

75
env:
86
- CHEF_VERSION="~> 12.0"
97

10-
matrix:
11-
exclude:
12-
# Chef 12.9 requires Ruby >= 2.1
13-
- rvm: 2.0.0
14-
env: CHEF_VERSION="~> 12.0"
15-
168
before_install:
179
- gem install bundler # Update bundler
1810
- gem update --system # https://github.com/sickill/rainbow/issues/48

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Please, [let us know](https://github.com/zuazo/ssl_certificate-cookbook/issues/n
7878
## Required Applications
7979

8080
* Chef `12` or higher.
81-
* Ruby `2.2` or higher.
81+
* Ruby `2.3` or higher.
8282

8383
Usage
8484
=====
@@ -161,6 +161,7 @@ When a namespace is set in the resource, it will try to read the following attri
161161
| `namespace['ssl_chain']['name']` | File name to be used for the intermediate certificate chain file. **If this is not present, no chain file will be written.**
162162
| `namespace['ssl_chain']['source']` | Source type to get the intermediate certificate chain from. Can be `'attribute'`, `'data-bag'`, `'chef-vault'` or `'file'`.
163163
| `namespace['ssl_chain']['path']` | File path of the intermediate SSL certificate chain.
164+
| `namespace['ssl_chain']['combined_path']` | File path of the combined certificates (intermediate chain + domain certificate).
164165
| `namespace['ssl_chain']['bag']` | Name of the Data Bag where the intermediate certificate chain is stored.
165166
| `namespace['ssl_chain']['item']` | Name of the Data Bag Item where the intermediate certificate chain is stored.
166167
| `namespace['ssl_chain']['item_key']` | Key of the Data Bag Item where the intermediate certificate chain is stored.

Diff for: libraries/resource_ssl_certificate_chain.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ def default_chain_content
208208
end
209209

210210
def default_chain_combined_path
211-
lazy do
212-
@default_chain_combined_path ||=
211+
lazy_cached_variable(:default_chain_combined_path) do
212+
read_namespace(%w(ssl_chain combined_path)) ||
213213
::File.join(cert_dir, chain_combined_name)
214214
end
215215
end

0 commit comments

Comments
 (0)