itamae-plugin-recipe-mackerel-agent 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 32b8878125789889b3ffcace544aa5e6c617e9c74d4166fc7b73a5ace6c6dae6
4
- data.tar.gz: 2d624ace112e40ff87ac4920fc949e0f3926a907544ebc344a9aa332f7cd82ee
2
+ SHA1:
3
+ metadata.gz: 1c2d557e61a81e8475d15184f7797648b10af8bd
4
+ data.tar.gz: 585d9207038713693ef4036ce6ba35b0f8448231
5
5
  SHA512:
6
- metadata.gz: 281b369eebfd0e7fef9c080a21c3a28eaad3dc6dd49d0693edeb74bc6e4fa7254f7cf45e18a99a09f09853a369a8b5b5acc50ab36b2dee6b278bef5feccc20ca
7
- data.tar.gz: 20e16bbce15e60455c2606155b91546845cbecdaff929556d23b1a85157f3043ae6e8fb6f32d1c29f9af397a519b82072a77aa506fd3e4419b52e0ce0c6fca91
6
+ metadata.gz: 62ef5c03a66d448a5aa78c86786dfe7a194ca6f038e29194659dc2ab887c7ea42c9b54b696a97ab41355833584f78b675cd67d746135a27bfcdd20d5a1dc6ffd
7
+ data.tar.gz: 7f45bc400adf273649f987f994ea3ce566cc56b99c65256ca1269ad12d0b52f96467f4c70afa9f2ca36ea3448310f08c8dd72e00939554279c914b526bd398a8
@@ -3,6 +3,10 @@ mackerel-agent recipe CHANGELOG
3
3
 
4
4
  This file is used to list changes made in each version of the mackerel-agent recipe.
5
5
 
6
+ v0.1.0
7
+ ------
8
+ - Support third party plugin install #15 (by holidayworking)
9
+
6
10
  v0.0.3
7
11
  ------
8
12
  - Support v2 packages #9 (by hayajo)
data/README.md CHANGED
@@ -38,7 +38,15 @@ node['mackerel-agent']['conf']['apikey'] = 'YOUR API KEY'
38
38
  node['mackerel-agent']['conf']['roles'] = ["My-Service:app", "Another-Service:db"]
39
39
 
40
40
  # Install official plugins (optional)
41
- node['plugins'] = ['mackerel-agent-plugins', 'mackerel-check-plugins']
41
+ node['mackerel-agent']['plugins'] = ['mackerel-agent-plugins', 'mackerel-check-plugins', 'mkr']
42
+
43
+ # Install third party plugins (optional)
44
+ node['mackerel-agent']['extra_plugins'] = [
45
+ {
46
+ 'name' => 'mackerelio/mackerel-plugin-aws-ecs',
47
+ 'version' => 'v0.0.4'
48
+ }
49
+ ]
42
50
 
43
51
  # Enable plugins (optional)
44
52
  node['mackerel-agent']['conf']['plugin.metrics.vmstat'] = {
@@ -6,6 +6,7 @@ node['mackerel-agent']['conf'] = node['mackerel-agent'].fetch('conf', {})
6
6
  node['mackerel-agent']['start_on_setup'] = node['mackerel-agent'].fetch('start_on_setup', true)
7
7
  node['mackerel-agent']['package-action'] = node['mackerel-agent'].fetch('package-action', :install)
8
8
  node['mackerel-agent']['plugins'] = node['mackerel-agent'].fetch('plugins', [])
9
+ node['mackerel-agent']['extra_plugins'] = node['mackerel-agent'].fetch('extra_plugins', [])
9
10
 
10
11
  def platform_version_satisfy?(op)
11
12
  Gem::Requirement.create(op).satisfied_by?(Gem::Version.create(node[:platform_version]))
@@ -74,6 +75,12 @@ node['mackerel-agent']['plugins'].each do |plugin|
74
75
  end
75
76
  end
76
77
 
78
+ node['mackerel-agent']['extra_plugins'].each do |extra_plugin|
79
+ execute "mkr plugin install #{extra_plugin['name']}" do
80
+ command "mkr plugin install --upgrade #{extra_plugin['name']}@#{extra_plugin['version']}"
81
+ end
82
+ end
83
+
77
84
  file "/etc/mackerel-agent/mackerel-agent.conf" do
78
85
  owner "root"
79
86
  group "root"
@@ -3,7 +3,7 @@ module Itamae
3
3
  module Recipe
4
4
  module Mackerel
5
5
  module Agent
6
- VERSION = "0.0.3"
6
+ VERSION = "0.1.0"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-mackerel-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mackerel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toml
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.7.6
99
+ rubygems_version: 2.5.2
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Itamae mackerel-agent recipe plugin