-
-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
mysql::ruby
when using percona packages
When using percona packages, make sure percona repo is configured before installing client packages in mysql::ruby. Signed-off-by: Seth Vargo <sethvargo@gmail.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,16 @@ | |
include_recipe "build-essential" | ||
include_recipe "mysql::client" | ||
|
||
if run_context.loaded_recipes.include?('mysql::percona_repo') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
sethvargo
Contributor
|
||
case node['platform'] | ||
when "ubuntu", "debian" | ||
resources("apt_repository[percona]").run_action(:add) | ||
when "centos", "amazon", "redhat" | ||
resources("yum_key[RPM-GPG-KEY-percona]").run_action(:add) | ||
resources("yum_repository[percona]").run_action(:add) | ||
end | ||
end | ||
|
||
node['mysql']['client']['packages'].each do |mysql_pack| | ||
resources("package[#{mysql_pack}]").run_action(:install) | ||
end | ||
|
This doesn't work on older chef versions, I don't think.