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 +5 -5
- data/CHANGELOG.md +4 -0
- data/README.md +9 -1
- data/lib/itamae/plugin/recipe/mackerel-agent/default.rb +7 -0
- data/lib/itamae/plugin/recipe/mackerel-agent/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1c2d557e61a81e8475d15184f7797648b10af8bd
|
4
|
+
data.tar.gz: 585d9207038713693ef4036ce6ba35b0f8448231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62ef5c03a66d448a5aa78c86786dfe7a194ca6f038e29194659dc2ab887c7ea42c9b54b696a97ab41355833584f78b675cd67d746135a27bfcdd20d5a1dc6ffd
|
7
|
+
data.tar.gz: 7f45bc400adf273649f987f994ea3ce566cc56b99c65256ca1269ad12d0b52f96467f4c70afa9f2ca36ea3448310f08c8dd72e00939554279c914b526bd398a8
|
data/CHANGELOG.md
CHANGED
@@ -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"
|
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
|
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-
|
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.
|
99
|
+
rubygems_version: 2.5.2
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: Itamae mackerel-agent recipe plugin
|