itamae-plugin-recipe-daddy 0.1.38 → 0.2.1

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: 425b9f4ebff8b48dbd33935561aab75b457d03b5b0dbe5349e52565957464906
4
- data.tar.gz: 6ab06006baa604262f67cbb92de0e517a2b5694a6f7c0e5fe282e18ab9e1c800
3
+ metadata.gz: 9485d8e6091711bf2b2f98ab885568642dedc93cb0a7dee39193ce3ddaf198a5
4
+ data.tar.gz: 78e616759e043676c4e7a8c931e06e1160259a853c100a5c9143cfef0ae4ffde
5
5
  SHA512:
6
- metadata.gz: bb5e334fa7e0d2893001636c0ad2b6cd0d9de8e9fc48adb3d62b675938c6589ffdde88ecf8a2d8f8c4bf984e320aa2722536676c54ade9975e0d79e2721e24a6
7
- data.tar.gz: 0aedb151dd3ff4814895175cf25325f24a4cb72326ad12dbc15ea047ad5a58bdc9f4ac7c44ad6e33fe2a18b738050fd59680fbe4cc187bfbc864e9376b34081a
6
+ metadata.gz: 4aae2f01faeace7e544dcb81d3bbac08246db618ba0f06a638fd6041671a088bb5673510efc9cf350459dc9bfeb358095a4823fed21b2d0fa2c27cabf6f6d48b
7
+ data.tar.gz: 15b6f8b46002d6b9fd811828bba41c108b6552cbfbee4c1cb5d9b756f990830d99b6f74306cff924ce9f6defba912da2734f4e1780f81accb2b1abde8c2f06da
data/HISTORY.md ADDED
@@ -0,0 +1,13 @@
1
+ # HISTORY
2
+
3
+ ## v0.2.1 (unreleased)
4
+
5
+ - Run `restorecon` on `mysqld.service` after template on RHEL to fix SELinux issues
6
+
7
+ ## v0.2.0 (2026-05-12)
8
+
9
+ - Add AlmaLinux 9 support
10
+
11
+ ## v0.1.38 and earlier
12
+
13
+ See git log.
@@ -1,7 +1,7 @@
1
1
  include_recipe 'daddy::mysql::common'
2
2
 
3
3
  case os_version
4
- when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/
4
+ when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/, /rhel-9\.(.*?)/
5
5
  package 'mysql-community-client' do
6
6
  user 'root'
7
7
  end
@@ -42,6 +42,32 @@ when /rhel-8\.(.*?)/
42
42
  subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
43
43
  end
44
44
 
45
+ execute 'dnf clean all' do
46
+ user 'root'
47
+ action :nothing
48
+ subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
49
+ end
50
+ when /rhel-9\.(.*?)/
51
+ template '/etc/yum.repos.d/mysql-community.repo' do
52
+ source ::File.join(::File.dirname(__FILE__), "templates/etc/yum.repos.d/mysql-community.rhel-9.repo.erb")
53
+ user 'root'
54
+ owner 'root'
55
+ group 'root'
56
+ mode '644'
57
+ end
58
+
59
+ execute 'dnf -y module disable mysql' do
60
+ user 'root'
61
+ action :nothing
62
+ subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
63
+ end
64
+
65
+ execute 'rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2025' do
66
+ user 'root'
67
+ action :nothing
68
+ subscribes :run, "template[/etc/yum.repos.d/mysql-community.repo]", :immediately
69
+ end
70
+
45
71
  execute 'dnf clean all' do
46
72
  user 'root'
47
73
  action :nothing
@@ -10,9 +10,16 @@ directory '/var/lib/mysql84' do
10
10
  end
11
11
 
12
12
  case os_version
13
- when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/
13
+ when /rhel-7\.(.*?)/, /rhel-8\.(.*?)/, /rhel-9\.(.*?)/
14
14
  template '/etc/systemd/system/mysqld.service' do
15
15
  user 'root'
16
+ mode '644'
17
+ end
18
+
19
+ execute 'restorecon for mysqld.service unit' do
20
+ command 'restorecon -v /etc/systemd/system/mysqld.service'
21
+ user 'root'
22
+ only_if 'test -x /usr/sbin/restorecon'
16
23
  end
17
24
 
18
25
  execute 'systemctl daemon-reload' do
@@ -0,0 +1,97 @@
1
+ [mysql-connectors-community]
2
+ name=MySQL Connectors Community
3
+ baseurl=https://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/
4
+ enabled=1
5
+ gpgcheck=1
6
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
7
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
8
+
9
+ [mysql80-community]
10
+ name=MySQL 8.0 Community Server
11
+ baseurl=https://repo.mysql.com/yum/mysql-8.0-community/el/$releasever/$basearch/
12
+ enabled=0
13
+ gpgcheck=1
14
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
15
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
16
+
17
+ [mysql-tools-community]
18
+ name=MySQL Tools Community
19
+ baseurl=https://repo.mysql.com/yum/mysql-tools-community/el/$releasever/$basearch/
20
+ enabled=0
21
+ gpgcheck=1
22
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
23
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
24
+
25
+ [mysql-cluster-8.0-community]
26
+ name=MySQL Cluster 8.0 Community
27
+ baseurl=https://repo.mysql.com/yum/mysql-cluster-8.0-community/el/$releasever/$basearch/
28
+ enabled=0
29
+ gpgcheck=1
30
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
31
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
32
+
33
+ [mysql-8.4-lts-community]
34
+ name=MySQL 8.4 LTS Community Server
35
+ baseurl=https://repo.mysql.com/yum/mysql-8.4-community/el/$releasever/$basearch/
36
+ enabled=0
37
+ gpgcheck=1
38
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
39
+
40
+ [mysql-tools-8.4-lts-community]
41
+ name=MySQL Tools 8.4 LTS Community
42
+ baseurl=https://repo.mysql.com/yum/mysql-tools-8.4-community/el/$releasever/$basearch/
43
+ enabled=0
44
+ gpgcheck=1
45
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
46
+
47
+ [mysql-cluster-8.4-lts-community]
48
+ name=MySQL Cluster 8.4 LTS Community
49
+ baseurl=https://repo.mysql.com/yum/mysql-cluster-8.4-community/el/$releasever/$basearch/
50
+ enabled=0
51
+ gpgcheck=1
52
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
53
+
54
+ [mysql-9.7-lts-community]
55
+ name=MySQL 9.7 LTS Community Server
56
+ baseurl=https://repo.mysql.com/yum/mysql-9.7-community/el/$releasever/$basearch/
57
+ enabled=1
58
+ gpgcheck=1
59
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
60
+
61
+ [mysql-tools-9.7-lts-community]
62
+ name=MySQL Tools 9.7 LTS Community
63
+ baseurl=https://repo.mysql.com/yum/mysql-tools-9.7-community/el/$releasever/$basearch/
64
+ enabled=1
65
+ gpgcheck=1
66
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
67
+
68
+ [mysql-cluster-9.7-lts-community]
69
+ name=MySQL Cluster 9.7 LTS Community
70
+ baseurl=https://repo.mysql.com/yum/mysql-cluster-9.7-community/el/$releasever/$basearch/
71
+ enabled=0
72
+ gpgcheck=1
73
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
74
+
75
+ [mysql-innovation-community]
76
+ name=MySQL Innovation Release Community Server
77
+ baseurl=https://repo.mysql.com/yum/mysql-innovation-community/el/$releasever/$basearch/
78
+ enabled=0
79
+ gpgcheck=1
80
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
81
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
82
+
83
+ [mysql-tools-innovation-community]
84
+ name=MySQL Tools Innovation Community
85
+ baseurl=https://repo.mysql.com/yum/mysql-tools-innovation-community/el/$releasever/$basearch/
86
+ enabled=0
87
+ gpgcheck=1
88
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
89
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
90
+
91
+ [mysql-cluster-innovation-community]
92
+ name=MySQL Cluster Innovation Release Community
93
+ baseurl=https://repo.mysql.com/yum/mysql-cluster-innovation-community/el/$releasever/$basearch/
94
+ enabled=0
95
+ gpgcheck=1
96
+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2025
97
+ file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
@@ -1,5 +1,5 @@
1
1
  module ItamaePluginRecipeDaddy
2
- VERSION = '0.1.38'
2
+ VERSION = '0.2.1'
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.38
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
@@ -95,6 +95,7 @@ files:
95
95
  - ".gitignore"
96
96
  - ".ruby-version"
97
97
  - Gemfile
98
+ - HISTORY.md
98
99
  - LICENSE.txt
99
100
  - README.md
100
101
  - Rakefile
@@ -114,6 +115,7 @@ files:
114
115
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/systemd/system/mysqld.service.erb
115
116
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-7.repo.erb
116
117
  - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-8.repo.erb
118
+ - lib/itamae/plugin/recipe/daddy/mysql/templates/etc/yum.repos.d/mysql-community.rhel-9.repo.erb
117
119
  - lib/itamae/plugin/recipe/daddy/nginx.rb
118
120
  - lib/itamae/plugin/recipe/daddy/nginx/install.rb
119
121
  - lib/itamae/plugin/recipe/daddy/nginx/modules/nginx-rtmp-module.rb