itamae-plugin-recipe-daddy 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/itamae/plugin/recipe/daddy/mysql.rb +1 -0
- data/lib/itamae/plugin/recipe/daddy/nginx.rb +2 -0
- data/lib/itamae/plugin/recipe/daddy/nginx/install.rb +22 -29
- data/lib/itamae/plugin/recipe/daddy/nginx/modules/passenger.rb +1 -0
- data/lib/itamae/plugin/recipe/daddy/nginx/templates/etc/tmpfiles.d/passenger.conf.erb +1 -1
- data/lib/itamae_plugin_recipe_daddy/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac8298c284cf637a3e297c0283fb0a8cb982bc25d713ca99ade9d22ddeff6f4f
|
4
|
+
data.tar.gz: 6a0c88646e4a7be6823dfe46f218bc28207b9901fab1aa2633d5febe08ea0cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8f6a514cc12759a0fd1f92d8cec6a06d0aa2e712a3ff12c02d7a378467dc61fd2a3d12dfa8ebc6ca764fbfbc3f9284e5ebcfdee15cb64ca7ccf4977d09e838b
|
7
|
+
data.tar.gz: 0bbe86a9bd5237cb3879d2f0472473c081cf2c58fc73102d0d21c2fb0ba01b631f5c0f112f195fa115559b199ad45eb903d551de0d5b5904255d514bf456acfa
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
include_recipe 'daddy::mysql::install'
|
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'daddy/itamae'
|
2
2
|
|
3
3
|
version = ENV['NGINX_VERSION'] || ItamaePluginRecipeDaddy::NGINX_VERSION
|
4
|
-
|
5
|
-
directory 'tmp'
|
4
|
+
rtmp_version = ENV['NGINX_RTMP_MODULE_VERSION'] || ItamaePluginRecipeDaddy::NGINX_RTMP_MODULE_VERSION
|
6
5
|
|
7
6
|
# install destination
|
8
7
|
%w{
|
@@ -31,12 +30,12 @@ end
|
|
31
30
|
end
|
32
31
|
|
33
32
|
# nginx source
|
34
|
-
execute
|
33
|
+
execute "download nginx-#{version}" do
|
35
34
|
cwd '/var/daddy/tmp'
|
36
35
|
command <<-EOF
|
37
36
|
wget https://nginx.org/download/nginx-#{version}.tar.gz
|
38
37
|
EOF
|
39
|
-
not_if "
|
38
|
+
not_if "echo #{::File.read(::File.join(::File.dirname(__FILE__), "nginx-#{version}_sha256sum.txt")).strip} | sha256sum -c"
|
40
39
|
end
|
41
40
|
|
42
41
|
# module sources
|
@@ -47,6 +46,7 @@ include_recipe 'modules/passenger'
|
|
47
46
|
execute 'build nginx' do
|
48
47
|
cwd '/var/daddy/tmp'
|
49
48
|
command <<-EOF
|
49
|
+
set -eu
|
50
50
|
rm -Rf nginx-#{version}/
|
51
51
|
tar zxf nginx-#{version}.tar.gz
|
52
52
|
pushd nginx-#{version}
|
@@ -55,7 +55,7 @@ execute 'build nginx' do
|
|
55
55
|
--conf-path=/etc/nginx/nginx.conf \
|
56
56
|
--pid-path=/run/nginx.pid \
|
57
57
|
--with-http_ssl_module \
|
58
|
-
--add-dynamic-module=/opt/nginx-rtmp-module/
|
58
|
+
--add-dynamic-module=/opt/nginx-rtmp-module/v#{rtmp_version} \
|
59
59
|
--add-dynamic-module=$(passenger-config --nginx-addon-dir)
|
60
60
|
sudo chown -R #{ENV['USER']}:#{ENV['USER']} ./
|
61
61
|
make
|
@@ -91,17 +91,13 @@ end
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
mode '644'
|
102
|
-
variables path: '/var/run/passenger-instreg',
|
103
|
-
owner: 'root', group: 'root', mode: '0755'
|
104
|
-
end
|
94
|
+
template '/etc/tmpfiles.d/passenger.conf' do
|
95
|
+
user 'root'
|
96
|
+
owner 'root'
|
97
|
+
group 'root'
|
98
|
+
mode '644'
|
99
|
+
variables path: '/var/run/passenger-instreg',
|
100
|
+
owner: 'root', group: 'root', mode: '0755'
|
105
101
|
end
|
106
102
|
|
107
103
|
template '/etc/nginx/conf.d/default.conf' do
|
@@ -124,17 +120,14 @@ if Daddy.config.app?
|
|
124
120
|
end
|
125
121
|
end
|
126
122
|
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
service 'nginx' do
|
138
|
-
user 'root'
|
139
|
-
action :enable
|
123
|
+
unless ENV['DOCKER']
|
124
|
+
template '/lib/systemd/system/nginx.service' do
|
125
|
+
user 'root'
|
126
|
+
end
|
127
|
+
|
128
|
+
execute 'systemctl daemon-reload' do
|
129
|
+
user 'root'
|
130
|
+
subscribes :run, 'template[/lib/systemd/system/nginx.service]', :immediately
|
131
|
+
action :nothing
|
132
|
+
end
|
140
133
|
end
|
@@ -1 +1 @@
|
|
1
|
-
d <%= @path %> <%= @mode %> <%= @owner %> <%= @group %>
|
1
|
+
d <%= @path %> <%= @mode %> <%= @owner %> <%= @group %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module ItamaePluginRecipeDaddy
|
2
|
-
VERSION = '0.1.
|
2
|
+
VERSION = '0.1.11'
|
3
3
|
|
4
4
|
CHROME_DRIVER_VERSION = [
|
5
5
|
CHROME_DRIVER_VERSION_MAJOR = '2',
|
@@ -33,7 +33,7 @@ module ItamaePluginRecipeDaddy
|
|
33
33
|
PASSENGER_VERSION = [
|
34
34
|
PASSENGER_VERSION_MAJOR = '6',
|
35
35
|
PASSENGER_VERSION_MINOR = '0',
|
36
|
-
PASSENGER_VERSION_PATCH = '
|
36
|
+
PASSENGER_VERSION_PATCH = '1'
|
37
37
|
].join('.')
|
38
38
|
|
39
39
|
PYTHON_VERSION = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- lib/itamae/plugin/recipe/daddy/bazel/install.rb
|
80
80
|
- lib/itamae/plugin/recipe/daddy/bazel/templates/yum.repos.d/vbatts-bazel.repo.erb
|
81
81
|
- lib/itamae/plugin/recipe/daddy/memcached/install.rb
|
82
|
+
- lib/itamae/plugin/recipe/daddy/mysql.rb
|
82
83
|
- lib/itamae/plugin/recipe/daddy/mysql/install.rb
|
83
84
|
- lib/itamae/plugin/recipe/daddy/mysql/mysql_secure_installation.sh
|
84
85
|
- lib/itamae/plugin/recipe/daddy/mysql/templates/daddy.cnf.erb
|