Skip to content

Commit

Permalink
support Chef 11
Browse files Browse the repository at this point in the history
  • Loading branch information
dearing committed Jul 31, 2015
1 parent 793ad7f commit 16db016
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ platforms:

provisioner:
name: chef_zero
require_chef_omnibus: '12.4.1'
require_chef_omnibus: '11'
data_bags_path: 'test/integration/data_bags'

suites:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ centos66

Requirements
------------
- chef 12
- chef 11+
- some kind of java
- see [metadata](/metadata.rb) for complexity

Expand Down
2 changes: 1 addition & 1 deletion libraries/provider_elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Elasticsearch < Chef::Provider::LWRPBase

use_inline_resources if defined?(use_inline_resources)

provides :elasticsearch
# provides :elasticsearch

service_name = 'elasticsearch'

Expand Down
2 changes: 1 addition & 1 deletion libraries/provider_kibana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Provider
class Kibana < Chef::Provider::LWRPBase
use_inline_resources if defined?(use_inline_resources)

provides :kibana
# provides :kibana

service_name = 'kibana'

Expand Down
2 changes: 1 addition & 1 deletion libraries/provider_logstash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Provider
class Logstash < Chef::Provider::LWRPBase
use_inline_resources if defined?(use_inline_resources)

provides :logstash
# provides :logstash

service_name = 'logstash'
action :install do
Expand Down
3 changes: 2 additions & 1 deletion libraries/provider_logstash_forwarder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ class Provider
class LogstashForwarder < Chef::Provider::LWRPBase
use_inline_resources if defined?(use_inline_resources)

provides :logstash_forwarder
# provides :logstash_forwarder

service_name = 'logstash-forwarder'

action :install do
Expand Down
2 changes: 0 additions & 2 deletions libraries/resource_elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ class Elasticsearch < Chef::Resource::LWRPBase
default_action :install
actions [:install, :remove, :enable, :disable, :restart, :start, :stop]

require 'chef/resource'

# used to target any files/templates; default to self
attribute :source, kind_of: String, default: 'elk'

Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'MIT'
description 'Installs/Configures ELK'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.2.0'
version '0.2.1'

supports 'centos'

Expand Down
2 changes: 1 addition & 1 deletion test/cookbooks/elktest/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# test a single node with all four projects
%w( tar nano htop java-1.8.0-openjdk-headless).each do |pkg|
%w( tar nano htop java-1.8.0-openjdk-headless ).each do |pkg|
package pkg
end

Expand Down

0 comments on commit 16db016

Please sign in to comment.