itamae-plugin-recipe-daddy 0.1.28 → 0.1.29
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 +4 -4
- data/lib/itamae/plugin/recipe/daddy/mysql/common.rb +9 -16
- data/lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/{mysql-community.repo.erb → mysql-community.rhel-7.repo.erb} +2 -2
- data/lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-8.repo.erb +34 -0
- data/lib/itamae_plugin_recipe_daddy/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2b2f51b6c2f38705ea7b45f73a30e1233e1f66f1994764a93ac4b17621abc2f
|
4
|
+
data.tar.gz: 23c5e880428152a138352ca983b0bd4944ee90dfe79ccaed3a3788704f2d1e70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e54405661bc628266f6249d7c7fbb643187b9a9d0d293f269fea11287f02ac2a3924945196895d6cced39ef1ce283c6cbae429e370135c5e83798e46253408b3
|
7
|
+
data.tar.gz: a48f0d116f44306645d1b7767ce55f740533bf628e4db9c39434c7e80a2b8af5cc3eabad5ab33ba2e0fdcec76ed010fb8a71b06f2fb8b400d2f848584564bc4c
|
@@ -1,23 +1,13 @@
|
|
1
1
|
require 'daddy/itamae'
|
2
2
|
|
3
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
|
-
variables enable_57: 1,
|
11
|
-
enable_80: 0
|
12
|
-
end
|
13
|
-
when /rhel-8\.(.*?)/
|
4
|
+
when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/
|
14
5
|
template '/etc/yum.repos.d/mysql-community.repo' do
|
6
|
+
source ::File.join(::File.dirname(__FILE__), "templates/etc/yum.repos.d/mysql-community.#{os_version.split('.').first}.repo.erb")
|
15
7
|
user 'root'
|
16
8
|
owner 'root'
|
17
9
|
group 'root'
|
18
10
|
mode '644'
|
19
|
-
variables enable_57: 0,
|
20
|
-
enable_80: 1
|
21
11
|
end
|
22
12
|
else
|
23
13
|
raise I18n.t('itamae.errors.unsupported_os_version', os_version: os_version)
|
@@ -36,8 +26,11 @@ execute 'yum clean all' do
|
|
36
26
|
subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
|
37
27
|
end
|
38
28
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
29
|
+
case os_version
|
30
|
+
when /rhel-7\.(.*?)/
|
31
|
+
execute 'rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022' do
|
32
|
+
user 'root'
|
33
|
+
action :nothing
|
34
|
+
subscribes :run, "template[/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql]", :immediately
|
35
|
+
end
|
43
36
|
end
|
@@ -18,14 +18,14 @@ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
|
18
18
|
[mysql57-community]
|
19
19
|
name=MySQL 5.7 Community Server
|
20
20
|
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
|
21
|
-
enabled
|
21
|
+
enabled=1
|
22
22
|
gpgcheck=1
|
23
23
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
24
24
|
|
25
25
|
[mysql80-community]
|
26
26
|
name=MySQL 8.0 Community Server
|
27
27
|
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/7/$basearch/
|
28
|
-
enabled
|
28
|
+
enabled=0
|
29
29
|
gpgcheck=1
|
30
30
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
31
31
|
|
data/lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-8.repo.erb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
[mysql80-community]
|
2
|
+
name=MySQL 8.0 Community Server
|
3
|
+
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/8/$basearch/
|
4
|
+
enabled=1
|
5
|
+
gpgcheck=1
|
6
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
7
|
+
|
8
|
+
[mysql-connectors-community]
|
9
|
+
name=MySQL Connectors Community
|
10
|
+
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/8/$basearch/
|
11
|
+
enabled=1
|
12
|
+
gpgcheck=1
|
13
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
14
|
+
|
15
|
+
[mysql-tools-community]
|
16
|
+
name=MySQL Tools Community
|
17
|
+
baseurl=http://repo.mysql.com/yum/mysql-tools-community/el/8/$basearch/
|
18
|
+
enabled=1
|
19
|
+
gpgcheck=1
|
20
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
21
|
+
|
22
|
+
[mysql-tools-preview]
|
23
|
+
name=MySQL Tools Preview
|
24
|
+
baseurl=http://repo.mysql.com/yum/mysql-tools-preview/el/8/$basearch/
|
25
|
+
enabled=0
|
26
|
+
gpgcheck=1
|
27
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
28
|
+
|
29
|
+
[mysql-cluster-8.0-community]
|
30
|
+
name=MySQL Cluster 8.0 Community
|
31
|
+
baseurl=http://repo.mysql.com/yum/mysql-cluster-8.0-community/el/8/$basearch/
|
32
|
+
enabled=0
|
33
|
+
gpgcheck=1
|
34
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
|
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.
|
4
|
+
version: 0.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -128,7 +128,8 @@ files:
|
|
128
128
|
- lib/itamae/plugin/recipe/daddy/mysql/server.rb
|
129
129
|
- lib/itamae/plugin/recipe/daddy/mysql/templates/daddy.cnf.erb
|
130
130
|
- lib/itamae/plugin/recipe/daddy/mysql/templates/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql.erb
|
131
|
-
- lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.repo.erb
|
131
|
+
- lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-7.repo.erb
|
132
|
+
- lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-8.repo.erb
|
132
133
|
- lib/itamae/plugin/recipe/daddy/nginx.rb
|
133
134
|
- lib/itamae/plugin/recipe/daddy/nginx/install.rb
|
134
135
|
- lib/itamae/plugin/recipe/daddy/nginx/modules/nginx-rtmp-module.rb
|