YggdrasillNetwork Blog

A blogging framework for hackers.

Chef-repo をみなおしてみる

概要

chef を使い始めてから chef-repo がだいぶ汚れて(?)きたので整理してみる

1
2
3
4
5
$ git clone git://github.com/opscode/chef-repo.git hosted-chef-repo
$ cd hosted-chef-repo
$ rm -rf .git
$ mkdir .chef
$ mkdir .berkshelf

organization の starter-kit を Download

psg-validator.pem と r-ogata.pem を .chef にコピー

knife.rb

1
2
3
4
5
6
7
8
9
log_level                :info
log_location             STDOUT
node_name                ''
client_key               ''
validation_client_name   ''
validation_key           ''
chef_server_url          ''
knife[:editor] =         '/usr/bin/vim'
cookbook_path            ['cookbooks', '../../site-cookbooks/']

config.json

1
2
3
4
5
6
7
8
9
10
11
12
{
  "chef": {
    "node_name": "",
    "client_key": "",
    "validation_client_name": "",
    "validation_key_path": "",
    "chef_server_url": ""
  },
  "ssl":{
    "verify": false
  }
}

https://manage.opscode.com/login

https://manage.opscode.com/starter-kit

参照 URL