itamae-plugin-recipe-daddy 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e61e5c3b94bb0b030e91f5c937fcda23b7c398c5ab158419dac6884e492af7c9
4
- data.tar.gz: 589e6ca015274fdfd62581d52964b4d807dc06095391f406082ec1eff26fc30c
3
+ metadata.gz: 2eec9275401682d7ba95be07cc0db3656ab0f6cf7e7f8ceb6a2dd19f8b6252e8
4
+ data.tar.gz: 64ee93645cccd5ab870e277f1190d49b8e9ab0dc72ee5e8654a5c98ba54c1728
5
5
  SHA512:
6
- metadata.gz: a96971460b07a14dbd7aefb46c6eb9d1de3f1a851a4ed7ecdbfac6e95f4b1c71408b716d3a1ccc655a54fd02f5fc0c93368c941334e08ec6033dc7d0c1d65f7b
7
- data.tar.gz: 51ab9a050fd755f7aef30d05924a9213f919182ef9b440c4134104292f038c6d11e207521567ab60c0d829c7b6c5f56a3a6f27c57e120b7d82271241821dcd59
6
+ metadata.gz: 236c2c1fe73e0dd94e38085bafb8bff7222a9346d254fd11f7cf078067fd048614b5e1c86aaa5f7db4b05ee0b9d1828def99720a7a565e5d8f401dcc0382331e
7
+ data.tar.gz: eb0980863d313f6f888a1f3c08ebea1f550971c57916f6f91d825b4077a805fd781280a66540ea904ee260eeab931189c4a9f55e14d898de0efd2465621940db
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itamae-plugin-recipe-daddy (0.1.5)
4
+ itamae-plugin-recipe-daddy (0.1.6)
5
5
  itamae (~> 1.9, >= 1.9.12)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  ansi (1.5.0)
11
11
  hashie (3.6.0)
12
- itamae (1.9.12)
12
+ itamae (1.10.1)
13
13
  ansi
14
14
  hashie
15
15
  schash (~> 0.1.0)
@@ -19,15 +19,15 @@ GEM
19
19
  net-ssh (>= 2.6.5)
20
20
  net-ssh (5.0.2)
21
21
  net-telnet (0.1.1)
22
- rake (12.3.1)
22
+ rake (12.3.2)
23
23
  schash (0.1.2)
24
24
  sfl (2.3)
25
- specinfra (2.76.2)
25
+ specinfra (2.76.3)
26
26
  net-scp
27
27
  net-ssh (>= 2.7)
28
28
  net-telnet (= 0.1.1)
29
29
  sfl
30
- thor (0.20.0)
30
+ thor (0.20.3)
31
31
 
32
32
  PLATFORMS
33
33
  ruby
@@ -0,0 +1 @@
1
+ include_recipe 'daddy::bazel::install'
@@ -1,5 +1,3 @@
1
- require 'daddy/itamae'
2
-
3
1
  template '/etc/yum.repos.d/vbatts-bazel.repo' do
4
2
  user 'root'
5
3
  end
@@ -0,0 +1 @@
1
+ include_recipe 'daddy::nginx::install'
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  # nginx source
34
34
  execute 'download nginx' do
35
- cwd 'tmp'
35
+ cwd '/var/daddy/tmp'
36
36
  command <<-EOF
37
37
  wget https://nginx.org/download/nginx-#{version}.tar.gz
38
38
  EOF
@@ -45,7 +45,7 @@ include_recipe 'modules/passenger'
45
45
 
46
46
  # build
47
47
  execute 'build nginx' do
48
- cwd 'tmp'
48
+ cwd '/var/daddy/tmp'
49
49
  command <<-EOF
50
50
  rm -Rf nginx-#{version}/
51
51
  tar zxf nginx-#{version}.tar.gz
@@ -99,8 +99,8 @@ when /rhel-7\.(.*?)/
99
99
  owner 'root'
100
100
  group 'root'
101
101
  mode '644'
102
- variables :path => '/var/run/passenger-instreg',
103
- :owner => 'root', :group => 'root', :mode => '0755'
102
+ variables path: '/var/run/passenger-instreg',
103
+ owner: 'root', group: 'root', mode: '0755'
104
104
  end
105
105
  end
106
106
 
@@ -118,8 +118,10 @@ directory '/etc/nginx/conf.d/servers' do
118
118
  mode '755'
119
119
  end
120
120
 
121
- if Daddy.config.app.type?
122
- include_recipe File.join(File.dirname(File.dirname(__FILE__)), Daddy.config.app.type, 'install.rb')
121
+ if Daddy.config.app?
122
+ if Daddy.config.app.type?
123
+ include_recipe File.join(File.dirname(File.dirname(__FILE__)), Daddy.config.app.type, 'install.rb')
124
+ end
123
125
  end
124
126
 
125
127
  template '/lib/systemd/system/nginx.service' do
@@ -0,0 +1 @@
1
+ 002d9f6154e331886a2dd4e6065863c9c1cf8291ae97a1255308572c02be9797 nginx-1.14.2.tar.gz
@@ -0,0 +1 @@
1
+ include_recipe 'daddy::opencv::install'
@@ -0,0 +1,33 @@
1
+ require 'daddy/itamae'
2
+
3
+ version = ENV['OPENCV_VERSION'] || ItamaePluginRecipeDaddy::OPENCV_VERSION
4
+
5
+ package 'gtk3-devel' do
6
+ user 'root'
7
+ end
8
+
9
+ execute "download opencv-#{version}" do
10
+ cwd '/var/daddy/tmp'
11
+ command <<-EOF
12
+ rm -f opencv-#{version}.tar.gz
13
+ wget https://github.com/opencv/opencv/archive/#{version}.tar.gz -O opencv-#{version}.tar.gz
14
+ EOF
15
+ not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "opencv-#{version}_sha256sum.txt")}"
16
+ end
17
+
18
+ execute "install opencv-#{version}" do
19
+ cwd '/var/daddy/tmp'
20
+ command <<-EOF
21
+ rm -Rf opencv-#{version}/
22
+ tar zxf opencv-#{version}.tar.gz
23
+ pushd opencv-#{version}
24
+ mkdir build
25
+ pushd build
26
+ cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
27
+ make -j7 # doesn't work as expected thread count
28
+ sudo make install
29
+ popd
30
+ popd
31
+ EOF
32
+ not_if "which opencv_version && opencv_version | grep '#{version}'" unless ENV['FORCE']
33
+ end
@@ -0,0 +1 @@
1
+ 5dca3bb0d661af311e25a72b04a7e4c22c47c1aa86eb73e70063cd378a2aa6ee opencv-3.3.1.tar.gz
@@ -0,0 +1 @@
1
+ 4eef85759d5450b183459ff216b4c0fa43e87a4f6aa92c8af649f89336f002ec opencv-3.4.3.tar.gz
@@ -0,0 +1 @@
1
+ include_recipe 'daddy::python::install'
@@ -0,0 +1 @@
1
+ cda7d967c9a4bfa52337cdf551bcc5cff026b6ac50a8834e568ce4a794ca81da Python-3.6.3.tar.xz
@@ -0,0 +1 @@
1
+ d79bc15d456e73a3173a2938f18a17e5149c850ebdedf84a78067f501ee6e16f Python-3.6.6.tar.xz
@@ -0,0 +1,26 @@
1
+ require 'daddy/itamae'
2
+
3
+ version = ENV['PYTHON_VERSION'] || ItamaePluginRecipeDaddy::PYTHON_VERSION
4
+
5
+ execute "download python-#{version}" do
6
+ cwd '/var/daddy/tmp'
7
+ command <<-EOF
8
+ rm -f Python-#{version}.tar.xz
9
+ wget https://www.python.org/ftp/python/#{version}/Python-#{version}.tar.xz
10
+ EOF
11
+ not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "Python-#{version}_sha256sum.txt")}"
12
+ end
13
+
14
+ execute "install python-#{version}" do
15
+ cwd '/var/daddy/tmp'
16
+ command <<-EOF
17
+ rm -Rf Python-#{version}/
18
+ tar Jxf Python-#{version}.tar.xz
19
+ pushd Python-#{version}
20
+ ./configure --enable-optimizations --with-lto
21
+ make
22
+ sudo make install
23
+ popd
24
+ EOF
25
+ not_if "which python3 && python3 -V | grep 'Python #{version}'"
26
+ end
@@ -1,5 +1,5 @@
1
1
  module ItamaePluginRecipeDaddy
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
 
4
4
  CHROME_DRIVER_VERSION = [
5
5
  CHROME_DRIVER_VERSION_MAJOR = '2',
@@ -15,7 +15,7 @@ module ItamaePluginRecipeDaddy
15
15
  NGINX_VERSION = [
16
16
  NGINX_VERSION_MAJOR = '1',
17
17
  NGINX_VERSION_MINOR = '14',
18
- NGINX_VERSION_REVISION = '0'
18
+ NGINX_VERSION_REVISION = '2'
19
19
  ].join('.')
20
20
 
21
21
  NGINX_RTMP_MODULE_VERSION = [
@@ -24,9 +24,21 @@ module ItamaePluginRecipeDaddy
24
24
  NGINX_RTMP_MODULE_VERSION_REVISION = '1'
25
25
  ].join('.')
26
26
 
27
+ OPENCV_VERSION = [
28
+ OPENCV_VERSION_MAJOR = '3',
29
+ OPENCV_VERSION_MINOR = '3',
30
+ OPENCV_VERSION_REVISION = '1'
31
+ ].join('.')
32
+
27
33
  PASSENGER_VERSION = [
28
34
  PASSENGER_VERSION_MAJOR = '5',
29
35
  PASSENGER_VERSION_MINOR = '3',
30
36
  PASSENGER_VERSION_REVISION = '3'
31
37
  ].join('.')
38
+
39
+ PYTHON_VERSION = [
40
+ PYTHON_VERSION_MAJOR = '3',
41
+ PYTHON_VERSION_MINOR = '6',
42
+ PYTHON_VERSION_REVISION = '6'
43
+ ].join('.')
32
44
  end
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -75,6 +75,7 @@ files:
75
75
  - bin/setup
76
76
  - itamae-plugin-recipe-daddy.gemspec
77
77
  - lib/itamae-plugin-recipe-daddy.rb
78
+ - lib/itamae/plugin/recipe/daddy/bazel.rb
78
79
  - lib/itamae/plugin/recipe/daddy/bazel/install.rb
79
80
  - lib/itamae/plugin/recipe/daddy/bazel/templates/yum.repos.d/vbatts-bazel.repo.erb
80
81
  - lib/itamae/plugin/recipe/daddy/memcached/install.rb
@@ -82,6 +83,7 @@ files:
82
83
  - lib/itamae/plugin/recipe/daddy/mysql/mysql_secure_installation.sh
83
84
  - lib/itamae/plugin/recipe/daddy/mysql/templates/daddy.cnf.erb
84
85
  - lib/itamae/plugin/recipe/daddy/mysql/templates/my.cnf.erb
86
+ - lib/itamae/plugin/recipe/daddy/nginx.rb
85
87
  - lib/itamae/plugin/recipe/daddy/nginx/install.rb
86
88
  - lib/itamae/plugin/recipe/daddy/nginx/modules/nginx-rtmp-module.rb
87
89
  - lib/itamae/plugin/recipe/daddy/nginx/modules/passenger.rb
@@ -89,12 +91,21 @@ files:
89
91
  - lib/itamae/plugin/recipe/daddy/nginx/nginx-1.13.5_sha256sum.txt
90
92
  - lib/itamae/plugin/recipe/daddy/nginx/nginx-1.13.9_sha256sum.txt
91
93
  - lib/itamae/plugin/recipe/daddy/nginx/nginx-1.14.0_sha256sum.txt
94
+ - lib/itamae/plugin/recipe/daddy/nginx/nginx-1.14.2_sha256sum.txt
92
95
  - lib/itamae/plugin/recipe/daddy/nginx/templates/etc/nginx/conf.d/default.conf.erb
93
96
  - lib/itamae/plugin/recipe/daddy/nginx/templates/etc/nginx/nginx.conf.erb
94
97
  - lib/itamae/plugin/recipe/daddy/nginx/templates/etc/tmpfiles.d/passenger.conf.erb
95
98
  - lib/itamae/plugin/recipe/daddy/nginx/templates/lib/systemd/system/nginx.service.erb
99
+ - lib/itamae/plugin/recipe/daddy/opencv.rb
100
+ - lib/itamae/plugin/recipe/daddy/opencv/install.rb
101
+ - lib/itamae/plugin/recipe/daddy/opencv/opencv-3.3.1_sha256sum.txt
102
+ - lib/itamae/plugin/recipe/daddy/opencv/opencv-3.4.3_sha256sum.txt
96
103
  - lib/itamae/plugin/recipe/daddy/passenger/install.rb
97
104
  - lib/itamae/plugin/recipe/daddy/passenger/templates/_passenger.conf.erb
105
+ - lib/itamae/plugin/recipe/daddy/python.rb
106
+ - lib/itamae/plugin/recipe/daddy/python/Python-3.6.3_sha256sum.txt
107
+ - lib/itamae/plugin/recipe/daddy/python/Python-3.6.6_sha256sum.txt
108
+ - lib/itamae/plugin/recipe/daddy/python/install.rb
98
109
  - lib/itamae/plugin/recipe/daddy/redis/install.rb
99
110
  - lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver.rb
100
111
  - lib/itamae/plugin/recipe/daddy/selenium/drivers/chromedriver_linux64-2.35_sha256sum.txt