install chef di centos

Di Redhat dan Centos versi 5


#sudo yum install wget
#sudo wget -O /etc/yum.repos.d/aegisco.repo http://rpm.aegisco.com/aegisco/el5/aegisco.repo
#sudo rpm -Uvh http://rbel.frameos.org/rbel5
#sudo yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode

Di redhat dan Centos versi 6


#sudo rpm -Uvh http://rbel.frameos.org/rbel6
#sudo yum install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode

Download dan Install Ruby && chef


#cd /tmp
#curl -O http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz
#tar zxf rubygems-1.8.10.tgz
#cd rubygems-1.8.10
#sudo ruby setup.rb --no-format-executable
#sudo gem install chef --no-ri --no-rdoc

Configure client.rb (jika kamu adalah client)


#cat /etc/chef/client.rb
log_level :info
log_location STDOUT
ssl_verify_mode :verify_none
chef_server_url "http://ganti_dengan_ip_atau_url_chef_kamu:4000"
file_cache_path "/var/cache/chef"
file_backup_path "/var/lib/chef/backup"
pid_file "/var/run/chef/client.pid"
cache_options({ :path => "/var/cache/chef/checksums", :skip_expires => true})
signing_ca_user "chef"
node_name "Ganti_dengan_nama_server_kamu"
Mixlib::Log::Formatter.show_time = true

yang perlu di perhatikan adalah config dan validation key server chef

One thought on “install chef di centos

  1. addhe warman says:

    in some old centos you will face dependcies problem kasi tau kalo ruby yang kamu pakai harus di update ke ruby 1.8.7 url dibawah ini akan memberikan kamu gambaran

    http://heatware.net/linux-unix/how-to-install-ruby-1-8-7-centos-5-5/

    yum install -y gcc zlib zlib-devel
    wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz
    tar xvf ruby-1.8.7-p330.tar.gz
    cd ruby-1.8.7-p330
    ./configure –prefix=/usr –enable-shared –enable-pthread
    make
    make install

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s