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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b29a0c06a4355929ab980738cd18e89697e8ff30dca7b4adb2f913b5696c81d7
|
4
|
+
data.tar.gz: 2881554f25f9ad71c00748bc8dc2073c5ed33c3dcb711fc0c70b5b38b576be84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a171d0deb9757c1d6240674095e2432da27560561bea465b786500afd841340aaf372459f40d9449b45e8e7436c04a88ec99847cfed2093b3939ef9aea5387e
|
7
|
+
data.tar.gz: 3fad567eafbbf0f7520793403c050e80950eb3811028ae29d8c9977e66a6d16766227021ef8605fdb57a75542d9c9a8b29ba85fbbfbbd021af3f249056ba4fa1
|
@@ -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
|
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
|
+
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:
|
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
|
-
|
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
|