itamae-plugin-recipe-daddy 0.1.24 → 0.1.25

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: be65ba9e19c1c8a9dc88d57aa198e75f2e946d6577a68439479f6ad075206791
4
- data.tar.gz: b2acc98aaa43c6ae8b11e0d5337707e330cb8536e430132e6deceb1bd9b715d5
3
+ metadata.gz: 7f8b04f4897e8d1801a38e791753d3fcb4eca7dfe04f0a1cad501431c3cfd053
4
+ data.tar.gz: 6869f144274720df4199b576a5bed24c87ff483c8921aba2ce5a8155ab922f0f
5
5
  SHA512:
6
- metadata.gz: a77703b70882e7b7233a5b2220c07ca6aea2fc85360ee6d42c73e4d7eb55f5442393c40a07bc29ca3dd235baf4113ff9a8362b80d485211bab11641a97a62957
7
- data.tar.gz: db968597679d692947e5a368e63aabba29677997b462c0e1c998d3edad9f1c9bdcb61b981fc7d64021ac53814d1af8377bfffae6e634d0793fc923f0e5925a1a
6
+ metadata.gz: 75c676e40a67abdf2f0d7ec8ff0e6cacfff0ac04fe69778ed5749f7fd75583a2386d7f6aad0f675d2c66da2ad6a3464b3ac0c47c6f8b7d330843aeb7b848ea28
7
+ data.tar.gz: c5002c61f86852f4da843b23bf5ecb02812e994fb3680bc09d14a15008437e8353c64d650a8ca66f4ef9d6ee824660c7faf8587cb6fc7f4b566db65994e5f19d
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.8
@@ -0,0 +1,14 @@
1
+ include_recipe 'daddy::mysql::common'
2
+
3
+ case os_version
4
+ when /rhel-7\.(.*?)/
5
+ package 'mysql-community-client' do
6
+ user 'root'
7
+ end
8
+
9
+ package 'mysql-community-devel' do
10
+ user 'root'
11
+ end
12
+ else
13
+ raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
14
+ end
@@ -0,0 +1,26 @@
1
+ require 'daddy/itamae'
2
+
3
+ case os_version
4
+ when /rhel-7\.(.*?)/
5
+ template '/etc/yum.repos.d/mysql-community.repo' do
6
+ user 'root'
7
+ owner 'root'
8
+ group 'root'
9
+ mode '644'
10
+ end
11
+
12
+ template '/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql' do
13
+ user 'root'
14
+ owner 'root'
15
+ group 'root'
16
+ mode '644'
17
+ end
18
+
19
+ execute 'yum clean all --enablerepo=mysql57-community' do
20
+ user 'root'
21
+ action :nothing
22
+ subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
23
+ end
24
+ else
25
+ raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
26
+ end
@@ -0,0 +1,23 @@
1
+ include_recipe 'daddy::mysql::common'
2
+
3
+ case os_version
4
+ when /rhel-7\.(.*?)/
5
+ package 'mysql-community-server' do
6
+ user 'root'
7
+ end
8
+
9
+ template '/etc/my.cnf.d/daddy.cnf' do
10
+ user 'root'
11
+ owner 'root'
12
+ group 'root'
13
+ mode '644'
14
+ end
15
+
16
+ service 'mysqld' do
17
+ user 'root'
18
+ action [:enable, :start]
19
+ end
20
+
21
+ else
22
+ raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
23
+ end
@@ -1 +1,2 @@
1
- include_recipe 'daddy::mysql::install'
1
+ include_recipe 'daddy::mysql::client'
2
+ include_recipe 'daddy::mysql::server'
@@ -1,5 +1,5 @@
1
1
  module ItamaePluginRecipeDaddy
2
- VERSION = '0.1.24'
2
+ VERSION = '0.1.25'
3
3
 
4
4
  NGINX_VERSION = [
5
5
  NGINX_VERSION_MAJOR = '1',
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.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-07 00:00:00.000000000 Z
11
+ date: 2025-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
@@ -108,6 +108,7 @@ extensions: []
108
108
  extra_rdoc_files: []
109
109
  files:
110
110
  - ".gitignore"
111
+ - ".ruby-version"
111
112
  - Gemfile
112
113
  - LICENSE.txt
113
114
  - README.md
@@ -122,7 +123,9 @@ files:
122
123
  - lib/itamae/plugin/recipe/daddy/bazel/templates/yum.repos.d/vbatts-bazel.repo.erb
123
124
  - lib/itamae/plugin/recipe/daddy/memcached/install.rb
124
125
  - lib/itamae/plugin/recipe/daddy/mysql.rb
125
- - lib/itamae/plugin/recipe/daddy/mysql/install.rb
126
+ - lib/itamae/plugin/recipe/daddy/mysql/client.rb
127
+ - lib/itamae/plugin/recipe/daddy/mysql/common.rb
128
+ - lib/itamae/plugin/recipe/daddy/mysql/server.rb
126
129
  - lib/itamae/plugin/recipe/daddy/mysql/templates/daddy.cnf.erb
127
130
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql.erb
128
131
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.repo.erb
@@ -179,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
182
  - !ruby/object:Gem::Version
180
183
  version: '0'
181
184
  requirements: []
182
- rubygems_version: 3.2.16
185
+ rubygems_version: 3.3.26
183
186
  signing_key:
184
187
  specification_version: 4
185
188
  summary: itamae recipe collections
@@ -1,68 +0,0 @@
1
- require 'daddy/itamae'
2
-
3
- case os_version
4
- when /rhel-6\.(.*?)/
5
- package 'mysql' do
6
- user 'root'
7
- end
8
-
9
- package 'mysql-server' do
10
- user 'root'
11
- end
12
-
13
- template '/etc/my.cnf' do
14
- user 'root'
15
- owner 'root'
16
- group 'root'
17
- mode '644'
18
- end
19
-
20
- service 'mysqld' do
21
- user 'root'
22
- action [:enable, :start]
23
- end
24
-
25
- when /rhel-7\.(.*?)/
26
- template '/etc/yum.repos.d/mysql-community.repo' do
27
- user 'root'
28
- owner 'root'
29
- group 'root'
30
- mode '644'
31
- end
32
-
33
- template '/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql' do
34
- user 'root'
35
- owner 'root'
36
- group 'root'
37
- mode '644'
38
- end
39
-
40
- execute 'yum clean all --enablerepo=mysql57-community' do
41
- user 'root'
42
- action :nothing
43
- subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
44
- end
45
-
46
- package 'mysql-community-server' do
47
- user 'root'
48
- end
49
-
50
- package 'mysql-community-devel' do
51
- user 'root'
52
- end
53
-
54
- template '/etc/my.cnf.d/daddy.cnf' do
55
- user 'root'
56
- owner 'root'
57
- group 'root'
58
- mode '644'
59
- end
60
-
61
- service 'mysqld' do
62
- user 'root'
63
- action [:enable, :start]
64
- end
65
-
66
- else
67
- raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
68
- end