itamae-plugin-recipe-supervisor 0.0.4 → 0.0.5

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: 8e780d15188b7cfe80908dcfba465899fe5598a1
4
- data.tar.gz: 85174e95ad4d2123ef6bbaeb3df7fd53f846ebe8
2
+ SHA256:
3
+ metadata.gz: b29a0c06a4355929ab980738cd18e89697e8ff30dca7b4adb2f913b5696c81d7
4
+ data.tar.gz: 2881554f25f9ad71c00748bc8dc2073c5ed33c3dcb711fc0c70b5b38b576be84
5
5
  SHA512:
6
- metadata.gz: dc55db583417bf4517d6febce301a61037eb465b427e8338620ed5df097456d13097144fa43029d5653db4b2607577eaa7fff7d2818585c0b53a5d36614cc67c
7
- data.tar.gz: 437bb873a1f7b9d2feec124c651bd0f695e24f9bb1d07c3343ad1c5d8351fe53c519070af3fa5842ee33bfb8c487397556775bf8d1958dd0b14588ea3630aa5f
6
+ metadata.gz: 4a171d0deb9757c1d6240674095e2432da27560561bea465b786500afd841340aaf372459f40d9449b45e8e7436c04a88ec99847cfed2093b3939ef9aea5387e
7
+ data.tar.gz: 3fad567eafbbf0f7520793403c050e80950eb3811028ae29d8c9977e66a6d16766227021ef8605fdb57a75542d9c9a8b29ba85fbbfbbd021af3f249056ba4fa1
@@ -5,4 +5,5 @@ include_recipe './supervisor/install'
5
5
 
6
6
  include_seasoning if respond_to?(:include_seasoning)
7
7
 
8
+ include_recipe './supervisor/service'
8
9
  include_recipe './supervisor/start'
@@ -16,30 +16,3 @@ directory '/etc/supervisor.d' do
16
16
  group 'root'
17
17
  mode '755'
18
18
  end
19
-
20
- case "#{node.platform_family}-#{node.platform_version}"
21
- when /rhel-6\.(.*?)/
22
- template '/etc/init.d/supervisord' do
23
- user 'root'
24
- owner 'root'
25
- group 'root'
26
- mode '755'
27
- end
28
- when /rhel-7\.(.*?)/
29
- pip_path = run_command('which pip').stdout
30
- template '/etc/systemd/system/supervisord.service' do
31
- user 'root'
32
- owner 'root'
33
- group 'root'
34
- mode '755'
35
- variables dir_path: File.dirname(pip_path)
36
- end
37
-
38
- execute 'systemctl daemon-reload' do
39
- user 'root'
40
- action :nothing
41
- subscribes :run, 'template[/etc/systemd/system/supervisord.service]', :immediately
42
- end
43
- else
44
- raise "unsupported platform #{node.platform_family}-#{node.platform_version}"
45
- end
@@ -0,0 +1,24 @@
1
+ case "#{node.platform_family}-#{node.platform_version}"
2
+ when /rhel-6\.(.*?)/
3
+ template '/etc/init.d/supervisord' do
4
+ user 'root'
5
+ owner 'root'
6
+ group 'root'
7
+ mode '755'
8
+ end
9
+ when /rhel-7\.(.*?)/
10
+ template '/etc/systemd/system/supervisord.service' do
11
+ user 'root'
12
+ owner 'root'
13
+ group 'root'
14
+ mode '755'
15
+ end
16
+
17
+ execute 'systemctl daemon-reload' do
18
+ user 'root'
19
+ action :nothing
20
+ subscribes :run, 'template[/etc/systemd/system/supervisord.service]', :immediately
21
+ end
22
+ else
23
+ raise "unsupported platform #{node.platform_family}-#{node.platform_version}"
24
+ end
@@ -2,7 +2,7 @@ module Itamae
2
2
  module Plugin
3
3
  module Recipe
4
4
  module Supervisor
5
- VERSION = "0.0.4"
5
+ VERSION = "0.0.5"
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-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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-06-14 00:00:00.000000000 Z
11
+ date: 2020-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -105,6 +105,7 @@ files:
105
105
  - itamae-plugin-recipe-supervisor.gemspec
106
106
  - lib/itamae/plugin/recipe/supervisor.rb
107
107
  - lib/itamae/plugin/recipe/supervisor/install.rb
108
+ - lib/itamae/plugin/recipe/supervisor/service.rb
108
109
  - lib/itamae/plugin/recipe/supervisor/start.rb
109
110
  - lib/itamae/plugin/recipe/supervisor/stop.rb
110
111
  - lib/itamae/plugin/recipe/supervisor/templates/etc/init.d/supervisord.erb
@@ -130,8 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
131
  - !ruby/object:Gem::Version
131
132
  version: '0'
132
133
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.5.2.3
134
+ rubygems_version: 3.0.4
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: itamae recipe for supervisor process state controlling framework