Adding Attributes to Test Kitchen

前端 未结 1 393
抹茶落季
抹茶落季 2021-01-04 18:07

I\'m trying to override attributes in the java cookbook with test-kitchen.

When I try run kitchen converge default-centos-64, a bad YAML er

相关标签:
1条回答
  • 2021-01-04 18:56

    Attributes are supplied as normal yaml content:

    suites:
      - name: default
        run_list: 
          - recipe[java::default]
          - recipe[maven::default]
        attributes:
           java:
             install_flavor: "oracle",
             jdk_version: "7"
    

    The Getting Started shows a syntax similar to yours:

    suites:
      - name: default
        run_list: 
          - recipe[java::default]
          - recipe[maven::default]
        attributes: { 'java': { 'install_flavor': 'oracle' } }
    
    0 讨论(0)
提交回复
热议问题