Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Chef | run_list

概要

run_list

詳細

run_listについて

記述法

{
  "run_list" :[
    "nginx",
    "mysql",
    "some"
  ]
}

nginx, mysql, someのデフォルトのレシピが実行されます。

{
  "run_list" :[
    "nginx::default",
    "mysql",
    "some",
    "some::some_recipe"
  ]
}

nginx, mysql, someのデフォルトのレシピとsomeのsome_recipeレシピが実行されます。
つまり、defaultのレシピは省略可能

{
  "run_list" :[
    "recipe[nginx::default]",
    "recipe[mysql]",
    "recipe[some]",
    "recipe[some::some_recipe]",
    "role[some_role]"
  ]
}
nginx, mysql, someのデフォルトのレシピとsomeのsome_recipeレシピ、
some_roleロールが実行されます。