Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 1.45 KB

qdup.adoc

File metadata and controls

49 lines (45 loc) · 1.45 KB

qDup YAML

name the name of the benchmark

name : test

scripts a map of scriptName : command tree

scripts:
  test-script :
  - log: "${{greeting}}, world"

hosts a map of name : host

hosts:
 - local : me@localhost:22
 - server :
   - username: user
   - hostname: server
   - port: 22 # port is optional and will default to 22

roles a map of roleName : a hosts list and at least one of: setup-scripts, run-scripts, cleanup-scripts. If the hosts list is missing then the role is ignored. The reserved role name ALL applies to all hosts used in the run.

roles:
  test:
    hosts: [local]
    run-scripts: [test-script]
  notTest:
    hosts: = ALL - tests                  #host expressions start with = and include +, -, and other role names
    run-scripts: [notTest-script]
  ALL:                                    #ALL automatically includes all hosts from other roles
    setup-scripts: [some-script]

states a map of name : value used for variable substitution in the run

a nested map of name : value pairs used to inject variables into the run configuration. Children are either a name : value pair or the name of a host. Hosts can have name : value pairs or the name of a script as children. Scripts are the lowest level in the state tree and therefore they can only have name : value pairs as children

states:
  foo : bar
  biz : buzz