hen*_*ald 5 chef-infra chef-recipe knife
我想知道是否将在不同配方内的节点上运行特定配方.我可以使用node.recipe?(recipe_name)方法,但是我的一些收件人是由角色和配方管理的?似乎没有查看角色运行列表.
有没有一种简单的方法可以找出我的recipie [redis]是否会在当前节点上运行?
Dav*_* S. 12
You're looking for the recipes method. Note the trailing s! So:
node.recipes.include?(recipe_name)
Run Code Online (Sandbox Code Playgroud)
另请注意,角色检查有一对类似的方法.那是role和roles.对于角色和配方,单数形式用于直接分配,单数形式用于完全分辨的集合.
| 归档时间: |
|
| 查看次数: |
5534 次 |
| 最近记录: |