daddy 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/itamae/environments/nodejs.rb +1 -1
- data/itamae/environments/nodejs/templates/etc/yum.repos.d/nodesource.repo.erb +2 -2
- data/lib/daddy/itamae.rb +1 -0
- data/lib/daddy/version.rb +1 -13
- metadata +2 -13
- data/itamae/cookbooks/nginx/install.rb +0 -123
- data/itamae/cookbooks/nginx/modules/nginx-rtmp-module.rb +0 -11
- data/itamae/cookbooks/nginx/modules/passenger.rb +0 -10
- data/itamae/cookbooks/nginx/nginx-1.13.12_sha256sum.txt +0 -1
- data/itamae/cookbooks/nginx/nginx-1.13.5_sha256sum.txt +0 -1
- data/itamae/cookbooks/nginx/nginx-1.13.9_sha256sum.txt +0 -1
- data/itamae/cookbooks/nginx/nginx-1.14.0_sha256sum.txt +0 -1
- data/itamae/templates/etc/nginx/conf.d/default.conf.erb +0 -44
- data/itamae/templates/etc/nginx/nginx.conf.erb +0 -11
- data/itamae/templates/etc/tmpfiles.d/passenger.conf.erb +0 -1
- data/itamae/templates/lib/systemd/system/nginx.service.erb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 707ebdbd2d51ef70d79928ef00a1556f16bb19268fdb05528a3cad8f4f2bf775
|
4
|
+
data.tar.gz: 264264067d5066726ed9c7aaa3178ca4adf880b93249a1b2b0cbad6a56381362
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133d703d10a6f2e48d78651f87c12b523813ea2fb509888adcda5204c5bdce0fed10dca06de96e8c7384eaef8ec29d4a72d9785b5a94804383e2b0841eb0ddf9
|
7
|
+
data.tar.gz: ea2bb2dface42cf16a15001c67d17435337680b21c6212e64b8bdd5638d1565b243baf9906e947736af99e918f8fa0332a556d895532d890ca2fdcefa9ec0bef
|
@@ -1,2 +1,2 @@
|
|
1
1
|
include_recipe 'base'
|
2
|
-
include_recipe 'nodejs
|
2
|
+
include_recipe 'nodejs/install'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[nodesource]
|
2
2
|
name=Node.js Packages for Enterprise Linux 7 - $basearch
|
3
|
-
baseurl=https://rpm.nodesource.com/
|
3
|
+
baseurl=https://rpm.nodesource.com/pub_8.x/el/7/$basearch
|
4
4
|
failovermethod=priority
|
5
5
|
enabled=1
|
6
6
|
gpgcheck=1
|
@@ -8,7 +8,7 @@ gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
|
|
8
8
|
|
9
9
|
[nodesource-source]
|
10
10
|
name=Node.js for Enterprise Linux 7 - $basearch - Source
|
11
|
-
baseurl=https://rpm.nodesource.com/
|
11
|
+
baseurl=https://rpm.nodesource.com/pub_8.x/el/7/SRPMS
|
12
12
|
failovermethod=priority
|
13
13
|
enabled=0
|
14
14
|
gpgkey=file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
|
data/lib/daddy/itamae.rb
CHANGED
data/lib/daddy/version.rb
CHANGED
@@ -2,7 +2,7 @@ module Daddy
|
|
2
2
|
VERSION = [
|
3
3
|
VERSION_MAJOR = '0',
|
4
4
|
VERSION_MINOR = '7',
|
5
|
-
VERSION_REVISION = '
|
5
|
+
VERSION_REVISION = '3'
|
6
6
|
].join('.')
|
7
7
|
|
8
8
|
CHROME_DRIVER_VERSION = [
|
@@ -16,18 +16,6 @@ module Daddy
|
|
16
16
|
GECKO_DRIVER_VERSION_REVISION = '1'
|
17
17
|
].join('.')
|
18
18
|
|
19
|
-
NGINX_VERSION = [
|
20
|
-
NGINX_VERSION_MAJOR = '1',
|
21
|
-
NGINX_VERSION_MINOR = '14',
|
22
|
-
NGINX_VERSION_REVISION = '0'
|
23
|
-
].join('.')
|
24
|
-
|
25
|
-
PASSENGER_VERSION = [
|
26
|
-
PASSENGER_VERSION_MAJOR = '5',
|
27
|
-
PASSENGER_VERSION_MINOR = '3',
|
28
|
-
PASSENGER_VERSION_REVISION = '2'
|
29
|
-
].join('.')
|
30
|
-
|
31
19
|
PYTHON_VERSION = [
|
32
20
|
PYTHON_VERSION_MAJOR = '3',
|
33
21
|
PYTHON_VERSION_MINOR = '6',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -307,13 +307,6 @@ files:
|
|
307
307
|
- itamae/cookbooks/nginx/config/rails.rb
|
308
308
|
- itamae/cookbooks/nginx/config/templates/_passenger.conf.erb
|
309
309
|
- itamae/cookbooks/nginx/config/templates/unicorn.conf.erb
|
310
|
-
- itamae/cookbooks/nginx/install.rb
|
311
|
-
- itamae/cookbooks/nginx/modules/nginx-rtmp-module.rb
|
312
|
-
- itamae/cookbooks/nginx/modules/passenger.rb
|
313
|
-
- itamae/cookbooks/nginx/nginx-1.13.12_sha256sum.txt
|
314
|
-
- itamae/cookbooks/nginx/nginx-1.13.5_sha256sum.txt
|
315
|
-
- itamae/cookbooks/nginx/nginx-1.13.9_sha256sum.txt
|
316
|
-
- itamae/cookbooks/nginx/nginx-1.14.0_sha256sum.txt
|
317
310
|
- itamae/cookbooks/obs_studio/install.rb
|
318
311
|
- itamae/cookbooks/phantomjs/install.rb
|
319
312
|
- itamae/cookbooks/python/Python-3.6.3_sha256sum.txt
|
@@ -346,20 +339,16 @@ files:
|
|
346
339
|
- itamae/templates/etc/init.d/god.erb
|
347
340
|
- itamae/templates/etc/logrotate.d/god.erb
|
348
341
|
- itamae/templates/etc/my.cnf.erb
|
349
|
-
- itamae/templates/etc/nginx/conf.d/default.conf.erb
|
350
342
|
- itamae/templates/etc/nginx/conf.d/servers/gitbucket.conf.erb
|
351
343
|
- itamae/templates/etc/nginx/conf.d/servers/jenkins.conf.erb
|
352
|
-
- itamae/templates/etc/nginx/nginx.conf.erb
|
353
344
|
- itamae/templates/etc/sysconfig/jenkins.erb
|
354
345
|
- itamae/templates/etc/systemd/system/tracd.service.erb
|
355
|
-
- itamae/templates/etc/tmpfiles.d/passenger.conf.erb
|
356
346
|
- itamae/templates/etc/vsftpd/vsftpd.conf.erb
|
357
347
|
- itamae/templates/etc/yum.repos.d/google-chrome.repo.erb
|
358
348
|
- itamae/templates/etc/yum.repos.d/jenkins.repo.erb
|
359
349
|
- itamae/templates/etc/yum.repos.d/mongodb-org.repo.erb
|
360
350
|
- itamae/templates/etc/yum.repos.d/nginx.repo.erb
|
361
351
|
- itamae/templates/etc/yum.repos.d/vbatts-bazel.repo.erb
|
362
|
-
- itamae/templates/lib/systemd/system/nginx.service.erb
|
363
352
|
- lib/capistrano/daddy.rb
|
364
353
|
- lib/capistrano/tasks/clear_cache.rake
|
365
354
|
- lib/capistrano/tasks/update_linked_files.rake
|
@@ -1,123 +0,0 @@
|
|
1
|
-
require 'daddy/itamae'
|
2
|
-
|
3
|
-
version = ENV['NGINX_VERSION']
|
4
|
-
|
5
|
-
directory 'tmp'
|
6
|
-
|
7
|
-
# install destination
|
8
|
-
%w{
|
9
|
-
/opt/nginx
|
10
|
-
/opt/nginx/cache
|
11
|
-
/opt/nginx/shared
|
12
|
-
/opt/nginx/shared/logs
|
13
|
-
}.each do |name|
|
14
|
-
directory name do
|
15
|
-
user 'root'
|
16
|
-
owner 'root'
|
17
|
-
group 'root'
|
18
|
-
mode '755'
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# nginx source
|
23
|
-
execute 'download nginx' do
|
24
|
-
cwd 'tmp'
|
25
|
-
command <<-EOF
|
26
|
-
wget https://nginx.org/download/nginx-#{version}.tar.gz
|
27
|
-
EOF
|
28
|
-
not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "nginx-#{version}_sha256sum.txt")}"
|
29
|
-
end
|
30
|
-
|
31
|
-
# module sources
|
32
|
-
include_recipe 'modules/nginx-rtmp-module'
|
33
|
-
include_recipe 'modules/passenger'
|
34
|
-
|
35
|
-
# build
|
36
|
-
execute 'build nginx' do
|
37
|
-
cwd 'tmp'
|
38
|
-
command <<-EOF
|
39
|
-
rm -Rf nginx-#{version}/
|
40
|
-
tar zxf nginx-#{version}.tar.gz
|
41
|
-
pushd nginx-#{version}
|
42
|
-
sudo ./configure \
|
43
|
-
--prefix=/opt/nginx/nginx-#{version} \
|
44
|
-
--conf-path=/etc/nginx/nginx.conf \
|
45
|
-
--pid-path=/run/nginx.pid \
|
46
|
-
--with-http_ssl_module \
|
47
|
-
--add-dynamic-module=/opt/nginx-rtmp-module/v1.1.11 \
|
48
|
-
--add-dynamic-module=$(passenger-config --nginx-addon-dir)
|
49
|
-
sudo chown -R #{ENV['USER']}:#{ENV['USER']} ./
|
50
|
-
make
|
51
|
-
sudo make install
|
52
|
-
popd
|
53
|
-
EOF
|
54
|
-
not_if "test -e /opt/nginx/nginx-#{version}"
|
55
|
-
end
|
56
|
-
|
57
|
-
link 'current' do
|
58
|
-
user 'root'
|
59
|
-
cwd '/opt/nginx'
|
60
|
-
to "nginx-#{version}"
|
61
|
-
force true
|
62
|
-
end
|
63
|
-
|
64
|
-
template '/etc/nginx/nginx.conf' do
|
65
|
-
user 'root'
|
66
|
-
owner 'root'
|
67
|
-
group 'root'
|
68
|
-
mode '644'
|
69
|
-
end
|
70
|
-
|
71
|
-
%w{
|
72
|
-
/etc/nginx/conf.d
|
73
|
-
/var/run/passenger-instreg
|
74
|
-
}.each do |name|
|
75
|
-
directory name do
|
76
|
-
user 'root'
|
77
|
-
owner 'root'
|
78
|
-
group 'root'
|
79
|
-
mode '755'
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
case os_version
|
84
|
-
when /rhel-6\.(.*?)/
|
85
|
-
when /rhel-7\.(.*?)/
|
86
|
-
template '/etc/tmpfiles.d/passenger.conf' do
|
87
|
-
user 'root'
|
88
|
-
owner 'root'
|
89
|
-
group 'root'
|
90
|
-
mode '644'
|
91
|
-
variables :path => '/var/run/passenger-instreg',
|
92
|
-
:owner => 'root', :group => 'root', :mode => '0755'
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
template '/etc/nginx/conf.d/default.conf' do
|
97
|
-
user 'root'
|
98
|
-
owner 'root'
|
99
|
-
group 'root'
|
100
|
-
mode '644'
|
101
|
-
end
|
102
|
-
|
103
|
-
directory '/etc/nginx/conf.d/servers' do
|
104
|
-
user 'root'
|
105
|
-
owner 'root'
|
106
|
-
group 'root'
|
107
|
-
mode '755'
|
108
|
-
end
|
109
|
-
|
110
|
-
template '/lib/systemd/system/nginx.service' do
|
111
|
-
user 'root'
|
112
|
-
end
|
113
|
-
|
114
|
-
execute 'systemctl daemon-reload' do
|
115
|
-
user 'root'
|
116
|
-
subscribes :run, 'template[/lib/systemd/system/nginx.service]'
|
117
|
-
action :nothing
|
118
|
-
end
|
119
|
-
|
120
|
-
service 'nginx' do
|
121
|
-
user 'root'
|
122
|
-
action :enable
|
123
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
fb92f5602cdb8d3ab1ad47dbeca151b185d62eedb67d347bbe9d79c1438c85de nginx-1.13.12.tar.gz
|
@@ -1 +0,0 @@
|
|
1
|
-
0e75b94429b3f745377aeba3aff97da77bf2b03fcb9ff15b3bad9b038db29f2e nginx-1.13.5.tar.gz
|
@@ -1 +0,0 @@
|
|
1
|
-
5faea18857516fe68d30be39c3032bd22ed9cf85e1a6fdf32e3721d96ff7fa42 nginx-1.13.9.tar.gz
|
@@ -1 +0,0 @@
|
|
1
|
-
5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5 nginx-1.14.0.tar.gz
|
@@ -1,44 +0,0 @@
|
|
1
|
-
http {
|
2
|
-
include mime.types;
|
3
|
-
default_type application/octet-stream;
|
4
|
-
ssl_protocols TLSv1.1 TLSv1.2;
|
5
|
-
|
6
|
-
log_format ltsv 'time:$time_local\t'
|
7
|
-
'msec:$msec\t'
|
8
|
-
'host:$remote_addr\t'
|
9
|
-
'forwardedfor:$http_x_forwarded_for\t'
|
10
|
-
'req:$request\t'
|
11
|
-
'method:$request_method\t'
|
12
|
-
'uri:$request_uri\t'
|
13
|
-
'status:$status\t'
|
14
|
-
'size:$body_bytes_sent\t'
|
15
|
-
'referer:$http_referer\t'
|
16
|
-
'ua:$http_user_agent\t'
|
17
|
-
'reqtime:$request_time\t'
|
18
|
-
'upsttime:$upstream_response_time\t'
|
19
|
-
'cache:$upstream_http_x_cache\t'
|
20
|
-
'runtime:$upstream_http_x_runtime\t'
|
21
|
-
'vhost:$host';
|
22
|
-
|
23
|
-
access_log /opt/nginx/shared/logs/access.log ltsv;
|
24
|
-
|
25
|
-
sendfile on;
|
26
|
-
#tcp_nopush on;
|
27
|
-
|
28
|
-
keepalive_timeout 65;
|
29
|
-
|
30
|
-
#gzip on;
|
31
|
-
|
32
|
-
proxy_cache_path /opt/nginx/cache levels=1:2 keys_zone=cache:512m inactive=1d max_size=60g;
|
33
|
-
|
34
|
-
passenger_root <%= `sudo passenger-config about root` %>;
|
35
|
-
passenger_instance_registry_dir /var/run/passenger-instreg;
|
36
|
-
|
37
|
-
server {
|
38
|
-
listen 80 default_server;
|
39
|
-
server_name _;
|
40
|
-
deny all;
|
41
|
-
}
|
42
|
-
|
43
|
-
include /etc/nginx/conf.d/servers/*.conf;
|
44
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
d <%= @path %> <%= @mode %> <%= @owner %> <%= @group %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
[Unit]
|
2
|
-
Description=The NGINX HTTP and reverse proxy server
|
3
|
-
After=syslog.target network.target remote-fs.target nss-lookup.target
|
4
|
-
|
5
|
-
[Service]
|
6
|
-
Type=forking
|
7
|
-
PIDFile=/run/nginx.pid
|
8
|
-
ExecStartPre=/opt/nginx/current/sbin/nginx -t
|
9
|
-
ExecStart=/opt/nginx/current/sbin/nginx
|
10
|
-
ExecReload=/bin/kill -s HUP $MAINPID
|
11
|
-
ExecStop=/bin/kill -s QUIT $MAINPID
|
12
|
-
PrivateTmp=true
|
13
|
-
|
14
|
-
[Install]
|
15
|
-
WantedBy=multi-user.target
|