Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Created October 19, 2013 01:09
Show Gist options
  • Save t-oginogin/7050556 to your computer and use it in GitHub Desktop.
Save t-oginogin/7050556 to your computer and use it in GitHub Desktop.

knife初期化

knife configure

recipe作成

$ sudo knife cookbook create xxx -o cookbooks/

solo.rb

file_cache_path "/tmp/chef-solo"
cookbook_path ["/home/vagrant/chef-repo/cookbooks"]

localhost.json

{
  "run_list" : [
    "recipe[git]"
  ]
}

実行コマンド

$ sudo chef-solo -c solo.rb -j ./localhost.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment