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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bf712fb1d2b13b2df08646d60d2ed2bf67da0f69491b95ce2724b9be51a8cc4a
|
|
4
|
+
data.tar.gz: '084038582bdeeac5bc0c381c1964bfd38b3f0cfcab4fa61e893f20ba26fceeae'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
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.
|
|
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.
|
|
183
|
+
rubygems_version: 3.7.2
|
|
183
184
|
specification_version: 4
|
|
184
185
|
summary: itamae recipe collections
|
|
185
186
|
test_files: []
|