itamae-plugin-recipe-god 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: a930b01b32d4c5505827ce2c60bd4b806f6c052a
4
- data.tar.gz: b5e5c9e76b403ad54ced1c1bd4fa7609663cf3dc
2
+ SHA256:
3
+ metadata.gz: c97e9d5a0b72707e806ad1923a4fe4bdcadd30a4b08ccd14f95ffa1e4a27fb25
4
+ data.tar.gz: d73fd2d3fb575cfff4c99901c6bbb6e14af84022634272814c2542f624527de4
5
5
  SHA512:
6
- metadata.gz: 776d07bb42bff649c95a00252517d455219201cf7543afb847fed9ac8155a0ef9a55e5e5acecf881192d608c58db4f4f0d16ba497f6d5a2a6a7b10c22bffe342
7
- data.tar.gz: e813326b65b471507024b181a0e5b8ec8b39bac154f24946fb1f6d9fa2b64165253daf79c6fe5f68bb4ea59fef6ab4b1eda9d87078a1ccffc7d4a768cf3c3c82
6
+ metadata.gz: 9d9ba3181b739bf263d145453751fe7e2a62ad5c03801e0740341c918dbfd355ad6b8fd4e1a2b54670cd94f8b80b03108bd27fe41fa1be67f81056723ea6efa7
7
+ data.tar.gz: 5b46cec3b0e2ab1e1e270b9a7c1bcc74d0cc20cfdbb6a68fb0569965cab9251f7f9f6c1a168a64617fc16d7065e58d6d1a035e3322fb97ea02f484d563a662b4
@@ -26,13 +26,12 @@ service_variables = {
26
26
 
27
27
  case "#{node.platform_family}-#{node.platform_version}"
28
28
  when /rhel-7\.(.*?)/
29
- which_god = run_command('which god')
30
29
  template '/etc/systemd/system/god.service' do
31
30
  user 'root'
32
31
  owner 'root'
33
32
  group 'root'
34
33
  mode '755'
35
- variables service_variables.merge({command: which_god.stdout.chomp})
34
+ variables service_variables
36
35
  end
37
36
  else
38
37
  template '/etc/init.d/god' do
@@ -4,8 +4,8 @@ After=network.target
4
4
 
5
5
  [Service]
6
6
  PIDFile=<%= @pid %>
7
- ExecStart=<%= @command %> -c <%= @config %> -P <%= @pid %> -l <%= @log %> --log-level <%= @log_level %>
8
- ExecStop=<%= @command %> quit
7
+ ExecStart=<%= `which god`.chomp %> -c <%= @config %> -P <%= @pid %> -l <%= @log %> --log-level <%= @log_level %>
8
+ ExecStop=<%= `which god`.chomp %> quit
9
9
 
10
10
  [Install]
11
11
  WantedBy=multi-user.target
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module God
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-god
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - y-matsuda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-20 00:00:00.000000000 Z
11
+ date: 2019-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -116,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.5.2.3
119
+ rubygems_version: 3.0.6
121
120
  signing_key:
122
121
  specification_version: 4
123
122
  summary: itamae recipe for god process monitoring framework