Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit 86468a2

Browse files
authored
Merge pull request #1 from pulselocker/arktos65_ohai
Bug fixes to support Ohai 4.x plugin.
2 parents f2f9978 + 3623814 commit 86468a2

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

.kitchen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ platforms:
1313
- name: ubuntu-12.04
1414
run_list:
1515
- recipe[apt]
16+
- name: ubuntu-14.04
17+
run_list:
18+
- recipe[apt]
1619

1720
suites:
1821
- name: default

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ nginx Cookbook CHANGELOG
22
========================
33
This file is used to list changes made in each version of the nginx cookbook.
44

5+
v2.7.7 / 2016-06-14
6+
==================
7+
8+
* Fixed the ohai recipe to work with V4.1.0 of the ohai cookbook.
9+
* Added Test Kitchen tests for Ubuntu 14.04.
10+
* Version bumped gems in the Gemfile including Berkshelf, rubocop, foodcritic.
11+
512
v2.7.6 / 2015-03-17
613
==================
714

8-
* Bugfix sites do not need a .conf suffix anymore, [#338][] [@runningman84][]
15+
* Bugfix sites do not need a .conf suffix anymore, [#338][] [@runningman84][]
916

1017
v2.7.5 (2015-03-17)
1118
-------------------

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
source 'https://rubygems.org'
22

33
group :lint do
4-
gem 'foodcritic', '~> 4.0'
5-
gem 'rubocop', '~> 0.27.0'
4+
gem 'foodcritic', '~> 6.3.0'
5+
gem 'rubocop', '~> 0.40.0'
66
end
77

88
group :unit do
9-
gem 'berkshelf', '~> 3.2.0'
9+
gem 'berkshelf', '~> 4.3.0'
1010
gem 'chefspec', '~> 4.1.0'
1111
end
1212

metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
maintainer_email '[email protected]'
44
license 'Apache 2.0'
55
description 'Installs and configures nginx'
6-
version '2.7.6'
6+
version '2.7.7'
77

88
recipe 'nginx', 'Installs nginx package and sets up configuration with Debian apache style with sites-enabled/sites-available'
99
recipe 'nginx::source', 'Installs nginx from source and sets up configuration with Debian apache style with sites-enabled/sites-available'
1010

1111
depends 'apt', '~> 2.2'
1212
depends 'bluepill', '~> 2.3'
1313
depends 'build-essential', '~> 2.0'
14-
depends 'ohai', '~> 2.0'
14+
depends 'ohai', '~> 4.1.0'
1515
depends 'runit', '~> 1.2'
1616
depends 'yum-epel', '~> 0.3'
1717

recipes/ohai_plugin.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@
2424
action :nothing
2525
end
2626

27-
template "#{node['ohai']['plugin_path']}/nginx.rb" do
28-
source 'plugins/nginx.rb.erb'
29-
owner 'root'
30-
group node['root_group']
31-
mode '0755'
27+
ohai_plugin 'nginx' do
28+
source_file 'plugins/nginx.rb.erb'
29+
resource :template
3230
notifies :reload, 'ohai[reload_nginx]', :immediately
33-
end
34-
35-
include_recipe 'ohai::default'
31+
end

0 commit comments

Comments
 (0)