File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ lint_and_unit: &lint_and_unit
8
8
version : 2.1
9
9
10
10
orbs :
11
- kitchen : sous-chefs/kitchen@2.0.2
11
+ kitchen : sous-chefs/kitchen@2
12
12
13
13
workflows :
14
14
kitchen :
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ This file is used to list changes made in each version of the nginx cookbook.
4
4
5
5
## Unreleased
6
6
7
+ ## 10.0.2 (2019-09-24)
8
+
9
+ - Bug Fix: Add missing service resource in ` nginx_site ` resource. [ Issue #505 ] ( https://github.com/sous-chefs/nginx/issues/505 ) )
10
+
7
11
## 10.0.1 (2019-08-04)
8
12
9
13
- Maintenance: Add contributing.md file for cookbook health metrics
Original file line number Diff line number Diff line change 6
6
chef_version '>= 14'
7
7
license 'Apache-2.0'
8
8
description 'Installs and configures nginx'
9
- long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
10
- version '10.0.1'
9
+ version '10.0.2'
11
10
12
11
depends 'ohai' , '~> 5.2'
13
12
Original file line number Diff line number Diff line change 29
29
not_if { site_enabled? ( new_resource . site_name ) }
30
30
only_if { site_available? ( new_resource . site_name ) }
31
31
end
32
+
33
+ service 'nginx' do
34
+ supports status : true , restart : true , reload : true
35
+ action :nothing
36
+ end
32
37
end
33
38
34
39
action :disable do
47
52
notifies :reload , 'service[nginx]'
48
53
end
49
54
end
55
+
56
+ service 'nginx' do
57
+ supports status : true , restart : true , reload : true
58
+ action :nothing
59
+ end
50
60
end
Original file line number Diff line number Diff line change @@ -181,13 +181,13 @@ class DummyClass < Chef::Node
181
181
context 'with version 8' do
182
182
let ( :platform_version ) { '8' }
183
183
184
- it { expect ( subject . passenger_packages ) . to eq [ ' ruby-dev' , ' libcurl4-gnutls-dev' , ' passenger' ] }
184
+ it { expect ( subject . passenger_packages ) . to eq %w( ruby-dev libcurl4-gnutls-dev passenger ) }
185
185
end
186
186
187
187
context 'with version 9' do
188
188
let ( :platform_version ) { '9' }
189
189
190
- it { expect ( subject . passenger_packages ) . to eq [ ' ruby-dev' , ' libcurl4-gnutls-dev' , ' libnginx-mod-http-passenger' ] }
190
+ it { expect ( subject . passenger_packages ) . to eq %w( ruby-dev libcurl4-gnutls-dev libnginx-mod-http-passenger ) }
191
191
end
192
192
end
193
193
@@ -197,13 +197,13 @@ class DummyClass < Chef::Node
197
197
context 'with version 16.04' do
198
198
let ( :platform_version ) { '16.04' }
199
199
200
- it { expect ( subject . passenger_packages ) . to eq [ ' ruby-dev' , ' libcurl4-gnutls-dev' , ' passenger' ] }
200
+ it { expect ( subject . passenger_packages ) . to eq %w( ruby-dev libcurl4-gnutls-dev passenger ) }
201
201
end
202
202
203
203
context 'with version 18.04' do
204
204
let ( :platform_version ) { '18.04' }
205
205
206
- it { expect ( subject . passenger_packages ) . to eq [ ' ruby-dev' , ' libcurl4-gnutls-dev' , ' libnginx-mod-http-passenger' ] }
206
+ it { expect ( subject . passenger_packages ) . to eq %w( ruby-dev libcurl4-gnutls-dev libnginx-mod-http-passenger ) }
207
207
end
208
208
end
209
209
end
You can’t perform that action at this time.
0 commit comments