include_recipe "percona::package_repo"

# install packages
case node["platform_family"]
when "debian"
  package "percona-server-server-5.5" do
    action :install
    options "--force-yes"
  end
when "rhel"
  # Need to remove this to avoid conflicts
  package "mysql-libs" do
    action :remove
    not_if "rpm -qa | grep Percona-Server-shared-55"
  end

  # we need mysqladmin
  include_recipe "percona::client"

  package "Percona-Server-server-55" do
    action :install
  end
end

include_recipe "percona::configure_server"

# access grants
include_recipe "percona::access_grants"

include_recipe "percona::replication"

include_recipe "percona::package_repo"

# install packages
case node["platform_family"]
when "debian"
  package "percona-server-server-5.5" do
    action :install
    options "--force-yes"
  end
when "rhel"
  # Need to remove this to avoid conflicts
  package "mysql-libs" do
    action :remove
    not_if "rpm -qa | grep Percona-Server-shared-55"
  end

  # we need mysqladmin
  include_recipe "percona::client"

  package "Percona-Server-server-55" do
    action :install
  end
end

include_recipe "percona::configure_server"

# access grants
include_recipe "percona::access_grants" do
  not_if node["percona"]["skip_passwords"]
end

include_recipe "percona::replication" do
  not_if node["percona"]["skip_passwords"]
end

Add password skipping for ci use
Add password skipping for ci use