概要
公式では Berkshelf を使用するのが推奨されていますがあえて使わないでインストールしてみました 
chef-client を使って実行しています
環境
- CentOS 6.6 64bit
- Chef 12.0.3-1 (chef-client)
- td-agent 0.12.12
- chef-td-agent (revision : 143057e)
必要なレシピを取得
- mkdir -p work/td-agent
- cd work/td-agent
- mkdir cookbooks
- cd cookbooks
- git clone https://github.com/treasure-data/chef-td-agent.git
- mv chef-td-agent td-agent
- git clone https://github.com/chef-cookbooks/apt.git
- git clone https://github.com/chef-cookbooks/yum.git
実行用 json ファイルを作成
- cd work/td-agent
- touch td-agent.json
- vim td-agent.json
{
  "run_list": [
    "td-agent"
  ]
}実行
- cd work/td-agent
- chef-client -z -j td-agent.json -o td-agent
確認
- which td-agent - /usr/sbin/td-agent 
- ls -l /etc/td-agent/td-agent.conf 
- td-agent-gem list | grep fluent
 
0 件のコメント:
コメントを投稿