Skip to content

Commit 8c62dc1

Browse files
authored
Merge pull request #19 from vinted/feature/add_41c356e_release_support
Feature/add 41c356e release support
2 parents f61f24a + 9c65d50 commit 8c62dc1

File tree

6 files changed

+24
-11
lines changed

6 files changed

+24
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ Initial release.
3939

4040
# 4.3.1
4141
- [CHANGE] Added support for 25db221 (2020-05-14) release (minor patch)
42+
43+
# 4.3.2
44+
- [CHANGE] Added support for 41c356e (2020-06-04) release (minor patch)
45+
- [FIX] my.cnf missing `[mysqld]`

attributes/default.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
# the topology implementation to use
99
default['vitess']['topo_implementation'] = 'etcd2'
1010

11-
default['vitess']['version']['mysqlctld'] = 'v6.0-25db221'
12-
default['vitess']['version']['vtctlclient'] = 'v6.0-25db221'
13-
default['vitess']['version']['vtctld'] = 'v6.0-25db221'
14-
default['vitess']['version']['vtgate'] = 'v6.0-25db221'
15-
default['vitess']['version']['vttablet'] = 'v6.0-25db221'
16-
default['vitess']['version']['vtworker'] = 'v6.0-25db221'
17-
default['vitess']['version']['mysqlctl'] = 'v6.0-25db221'
18-
default['vitess']['version']['vtctl'] = 'v6.0-25db221'
19-
default['vitess']['version']['vtexplain'] = 'v6.0-25db221'
20-
default['vitess']['version']['vtbench'] = 'v6.0-25db221'
11+
default['vitess']['version']['mysqlctld'] = 'v6.0-41c356e'
12+
default['vitess']['version']['vtctlclient'] = 'v6.0-41c356e'
13+
default['vitess']['version']['vtctld'] = 'v6.0-41c356e'
14+
default['vitess']['version']['vtgate'] = 'v6.0-41c356e'
15+
default['vitess']['version']['vttablet'] = 'v6.0-41c356e'
16+
default['vitess']['version']['vtworker'] = 'v6.0-41c356e'
17+
default['vitess']['version']['mysqlctl'] = 'v6.0-41c356e'
18+
default['vitess']['version']['vtctl'] = 'v6.0-41c356e'
19+
default['vitess']['version']['vtexplain'] = 'v6.0-41c356e'
20+
default['vitess']['version']['vtbench'] = 'v6.0-41c356e'
2121

2222
# host to send spans to. if empty, no tracing will be done
2323
default['vitess']['datadog-agent-host'] = nil

attributes/releases.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
'https://github.com/planetscale/vitess-releases/releases/download/25db221/vitess-6.0-25db221.tar.gz'
1010
default['vitess']['releases']['25db221']['checksum'] =
1111
'b8c1ac3b7f9ed41d544a22cb63bfd213e1e5812f6d427fb16c8c485b6ad13953'
12+
13+
# 2020-06-04 at 12:01:01 AM UTC
14+
default['vitess']['releases']['41c356e']['url'] =
15+
'https://github.com/planetscale/vitess-releases/releases/download/41c356e/vitess-6.0-41c356e.tar.gz'
16+
default['vitess']['releases']['41c356e']['checksum'] =
17+
'3bda4eeb3237b1f73b6c4e207372ec8aec9a855ec640f7300c172d20bca382b9'

libraries/base_service.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class VitessBaseService < Chef::Resource
7979
attribute(:service_restart, kind_of: String, default: 'on-failure')
8080

8181
# MySQL
82+
attribute(:mycnf_cookbook, kind_of: String, default: 'vitess')
8283
attribute(:mycnf, kind_of: Hash, default: lazy { node['vitess']['mycnf'] })
8384

8485
# Cookbook
@@ -184,6 +185,7 @@ def create_directories(dirs)
184185

185186
def generate_mycnf(path:, variables:)
186187
template path do
188+
cookbook new_resource.mycnf_cookbook
187189
source 'mycnf/generic.cnf.erb'
188190
variables variables: variables
189191
owner new_resource.user

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
issues_url 'https://github.com/vinted/chef-vitess/issues'
88
source_url 'https://github.com/vinted/chef-vitess'
99
chef_version '>= 12.1' if respond_to?(:chef_version)
10-
version '4.3.1'
10+
version '4.3.2'
1111

1212
supports 'redhat'
1313
supports 'centos'

templates/mycnf/generic.cnf.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[mysqld]
12
<% @variables.each do |key, val| %>
23
<% if val.nil? %>
34
<%= key %>

0 commit comments

Comments
 (0)