itamae-plugin-recipe-daddy 0.1.34 → 0.1.35

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: 2a4ddc90288586b8ccac5cb4c2f5b70c0ea758be0948d0b39828c4b56b451f7b
4
- data.tar.gz: 0072edc9f1315d94c2adc338af3e0e52063e84818d1ff92c97a1926175d356e3
3
+ metadata.gz: bf712fb1d2b13b2df08646d60d2ed2bf67da0f69491b95ce2724b9be51a8cc4a
4
+ data.tar.gz: '084038582bdeeac5bc0c381c1964bfd38b3f0cfcab4fa61e893f20ba26fceeae'
5
5
  SHA512:
6
- metadata.gz: c1e873198056d376e4ef4620849a4053700882f2105db5dfeaa2c7df365407467808b6e0707f04c495bb616a6f6d954e5cc391bcd64380b6045d2b1227d4b74f
7
- data.tar.gz: e9057b5a5c71682e7943db616ce9093dd13600adb4384c9ac43f562f8c20e44611dcecbc8cbfd44658f42b5ca5841da4b121697923bd232a8453e917b9254317
6
+ metadata.gz: aa98f772144ae063cecb5d814e27075847911f68f2927044ab744f78c3ad04df3d3174746414059b092ea5173cf2d3aefec254352406e19b23f1fec6707573a0
7
+ data.tar.gz: 6b61adbd158d1e70fe9acfe49c027b4de80e98d241fe0de5ac382bea89962a6c8b3b902da42b51947e8e3a0a9a4b959e772f0db10b50ef91af89a8e8586334fe
@@ -1,9 +1,24 @@
1
1
  include_recipe 'daddy::mysql::common'
2
2
 
3
+ service 'mysqld' do
4
+ user 'root'
5
+ action [:disable, :stop]
6
+ end
7
+
8
+ directory '/var/lib/mysql84' do
9
+ user 'root'
10
+ end
11
+
3
12
  case os_version
4
13
  when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/
5
- package 'mysql-community-server' do
14
+ template '/etc/systemd/system/mysqld.service' do
15
+ user 'root'
16
+ end
17
+
18
+ execute 'systemctl daemon-reload' do
6
19
  user 'root'
20
+ subscribes :run, 'template[/etc/systemd/system/mysqld.service]', :immediately
21
+ action :nothing
7
22
  end
8
23
  else
9
24
  raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
@@ -0,0 +1,22 @@
1
+ [Unit]
2
+ Description=MySQL server managed by docker
3
+ Requires=docker.service
4
+ After=network-online.target docker.service
5
+ Wants=network-online.target
6
+
7
+ [Service]
8
+ Type=simple
9
+ ExecStart=/usr/bin/docker run --rm --name mysql \
10
+ -e MYSQL_ALLOW_EMPTY_PASSWORD=yes \
11
+ -e TZ=Asia/Tokyo \
12
+ -v /var/lib/mysql84:/var/lib/mysql \
13
+ -p 127.0.0.1:3306:3306 \
14
+ mysql:8.4.7
15
+ ExecStop=/usr/bin/docker stop mysql
16
+ Restart=on-failure
17
+ RestartSec=10s
18
+ TimeoutStartSec=0
19
+ TimeoutStopSec=30
20
+
21
+ [Install]
22
+ WantedBy=multi-user.target
@@ -1,5 +1,5 @@
1
1
  module ItamaePluginRecipeDaddy
2
- VERSION = '0.1.34'
2
+ VERSION = '0.1.35'
3
3
 
4
4
  NGINX_VERSION = [
5
5
  NGINX_VERSION_MAJOR = '1',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-recipe-daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
@@ -125,6 +125,7 @@ files:
125
125
  - lib/itamae/plugin/recipe/daddy/mysql/client.rb
126
126
  - lib/itamae/plugin/recipe/daddy/mysql/common.rb
127
127
  - lib/itamae/plugin/recipe/daddy/mysql/server.rb
128
+ - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/systemd/system/mysqld.service.erb
128
129
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-7.repo.erb
129
130
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-8.repo.erb
130
131
  - lib/itamae/plugin/recipe/daddy/nginx.rb
@@ -179,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
180
  - !ruby/object:Gem::Version
180
181
  version: '0'
181
182
  requirements: []
182
- rubygems_version: 3.7.1
183
+ rubygems_version: 3.7.2
183
184
  specification_version: 4
184
185
  summary: itamae recipe collections
185
186
  test_files: []