LoginSignup
0
0

More than 5 years have passed since last update.

[ chef ] kitchen.ymlでroleの指定

Posted at

memo

---
driver:
  name: 'vagrant'

provisioner:
  name: 'chef_zero'
  roles_path: './roles'

suites:
  - name: 'default'
    run_list:
      - 'recipe[test_cookbook]'
      - 'role[test_role]'
    attributes: 


これは省略してるのでそのまま使えるかどうか不確かだが、要するに
provisioner/roles_pathには.kitchen.ymlがある場所からの相対パスを指定する。
そしてrolesディレクトリ直下に置いたroleのjsonファイルをSuites/run_listでサンプルのように指定するとroleが使えた。

chefのwikiにはroles_pathが使えるとしか書いてなかったのでメモ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0