itamae-plugin-recipe-daddy 0.1.10 → 0.1.11

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: 398e072f6066ab89fa0fd47e5203a8717db032c7881b5a44408f0ea706b73894
4
- data.tar.gz: b3c2b6e37b7c4385f6a0693fb5e3df68bcfe340a77931f829ef838f8567675fd
3
+ metadata.gz: ac8298c284cf637a3e297c0283fb0a8cb982bc25d713ca99ade9d22ddeff6f4f
4
+ data.tar.gz: 6a0c88646e4a7be6823dfe46f218bc28207b9901fab1aa2633d5febe08ea0cb8
5
5
  SHA512:
6
- metadata.gz: ce542e953f796159069223c6a3b5b4d8e0384b045897f434899e508d9011f59dcf5f2e1b61e1d24db50bda30a68699e79f6cf49bb31bcee8abc9be57d348446d
7
- data.tar.gz: 7eb0a44d4531ae86f0f7417acb2ef59540e7189c6bf68b4c3d9bc29e0d1339c8c69d3a095e23424b69875709601ebd4b2e4e873b84b8d1b3b5c2c9b157168c67
6
+ metadata.gz: b8f6a514cc12759a0fd1f92d8cec6a06d0aa2e712a3ff12c02d7a378467dc61fd2a3d12dfa8ebc6ca764fbfbc3f9284e5ebcfdee15cb64ca7ccf4977d09e838b
7
+ data.tar.gz: 0bbe86a9bd5237cb3879d2f0472473c081cf2c58fc73102d0d21c2fb0ba01b631f5c0f112f195fa115559b199ad45eb903d551de0d5b5904255d514bf456acfa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itamae-plugin-recipe-daddy (0.1.8)
4
+ itamae-plugin-recipe-daddy (0.1.11)
5
5
  itamae (~> 1.10, >= 1.10.2)
6
6
 
7
7
  GEM
@@ -0,0 +1 @@
1
+ include_recipe 'daddy::mysql::install'
@@ -1 +1,3 @@
1
+ include_recipe 'daddy::nginx::stop' unless ENV['DOCKER']
1
2
  include_recipe 'daddy::nginx::install'
3
+ include_recipe 'daddy::nginx::start' unless ENV['DOCKER']
@@ -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 'download nginx' do
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 "sha256sum -c #{::File.join(::File.dirname(__FILE__), "nginx-#{version}_sha256sum.txt")}"
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/v1.1.11 \
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
- case os_version
95
- when /rhel-6\.(.*?)/
96
- when /rhel-7\.(.*?)/
97
- template '/etc/tmpfiles.d/passenger.conf' do
98
- user 'root'
99
- owner 'root'
100
- group 'root'
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
- template '/lib/systemd/system/nginx.service' do
128
- user 'root'
129
- end
130
-
131
- execute 'systemctl daemon-reload' do
132
- user 'root'
133
- subscribes :run, 'template[/lib/systemd/system/nginx.service]', :immediately
134
- action :nothing
135
- end
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
@@ -4,6 +4,7 @@ nginx_version = ENV['NGINX_VERSION'] || ItamaePluginRecipeDaddy::NGINX_VERSION
4
4
  gem_package 'passenger' do
5
5
  user 'root'
6
6
  version version
7
+ options ['--verbose'] # to avoid read timeout error on docker
7
8
  end
8
9
 
9
10
  execute "rm -Rf /opt/nginx/nginx-#{nginx_version}" do
@@ -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.10'
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 = '0'
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.10
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-01-30 00:00:00.000000000 Z
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