Skip to content

Commit

Permalink
feat(kitchen): manage suite.driver (e.g. for static hostname)
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Sep 9, 2020
1 parent 3650a04 commit b6d766e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ ssf_node_anchors:
# Hence, the inclusion of `platforms_matrix_commented_includes`
# yamllint disable-line rule:line-length
# Ref: https://github.com/test-kitchen/test-kitchen/blob/7ce894e74f828f9e36531cf2d74588dd74fbf240/lib/kitchen/config.rb#L183-L193
driver: {}
excludes: []
includes: []
inspec_yml:
Expand Down
7 changes: 7 additions & 0 deletions ssf/files/default/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ suites:
- name: {{ suite.name }}
{{- format_includes_excludes(suite, 'excludes') }}
{{- format_includes_excludes(suite, 'includes') }}
{%- set driver = suite.driver %}
{%- if driver %}
driver:
{%- for k, v in driver.items() %}
{{ k }}: {{ v }}
{%- endfor %}
{%- endif %}
provisioner:
state_top:
base:
Expand Down
2 changes: 2 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2916,6 +2916,8 @@ ssf:
repo: 'openssh-formula'
inspec_suites_kitchen:
0:
driver:
hostname: 'example.net'
inspec_yml:
depends: *depends_on_suite_share
summary: >-
Expand Down

0 comments on commit b6d766e

Please sign in to comment.