LoginSignup
8
8

More than 5 years have passed since last update.

CentOSをChefでセットアップする

Posted at

VirtualBox上にCentOS6.5をインストールして、Chefをインストールしたのでその記録。

CentOS 6.5をセットアップする

VMを作る

このときビデオメモリが初期設定の512MBだとCUIインストーラーしか起動せず、インストールしてもMinimal相当しかインストールできない。

インストール

とりあえずMinimalでインストールする。

ネットワーク有効化

ネットワークの設定ファイルを開く。

vi /etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOTの値をyesに変更する。

ONBOOT=yes

ネットワークの再起動をする。

/etc/init.d/network restart

Chefのインストール

デフォルトでcurlは入っているはずなので、下のコマンドを実行してChefをインストールする。

curl -L https://www.opscode.com/chef/install.sh | bash

knife-soloのインストール

ついでにknife-soloをインストールする。
curlでスクリプトからインストールしたChefは/opt/chef以下に自分用のRubyなどをインストールしている。
なので、そちらのgemでknife-soloのインストールを行う。

/opt/chef/embedded/bin/gem i knife-solo --no-ri --no-rdoc
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8