Created
January 15, 2014 06:34
-
-
Save sakama/8431802 to your computer and use it in GitHub Desktop.
Perconaのレポジトリからpercona-extrabackup、percona-toolkitをインストールして、インストール完了後にレポジトリをenabled=falseにするためのChefの記述
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arch = node['kernel']['machine'] | |
arch = 'i386' unless arch == 'x86_64' | |
pversion = node['platform_version'].split('.').first | |
yum_repository 'percona' do | |
repo_name 'Percona' | |
description 'Percona Repo' | |
url "http://repo.percona.com/centos/#{pversion}/os/#{arch}/" | |
key 'RPM-GPG-KEY-percona' | |
action :add | |
end | |
package "percona-xtrabackup" do | |
action :install | |
end | |
package "percona-toolkit" do | |
action :install | |
end | |
#インストール完了時、Perconaのレポジトリはenabled:falseにしておく | |
yum_repository 'percona' do | |
enabled 'false' | |
action :update | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment