25 lines
807 B
YAML
25 lines
807 B
YAML
|
|
spec: runbook-pack/v0.1
|
||
|
|
id: rtut.example-hello
|
||
|
|
title: Example - check a host answers
|
||
|
|
owner: runbook-tutorials
|
||
|
|
outcome: You have proven a host answers on the network.
|
||
|
|
engine: native
|
||
|
|
parameters:
|
||
|
|
- {id: host, label: Host name, type: string, default: localhost, pattern: "[a-zA-Z0-9.-]+"}
|
||
|
|
- {id: count, label: Ping count, type: int, default: 1}
|
||
|
|
prerequisites:
|
||
|
|
- {text: A shell with ping installed, owner: workstation}
|
||
|
|
steps:
|
||
|
|
- id: ping
|
||
|
|
title: Ping the host
|
||
|
|
owner: workstation
|
||
|
|
command: ping -c {{count}} {{host}}
|
||
|
|
verify:
|
||
|
|
done_when: ping reports 0% packet loss
|
||
|
|
command: ping -c {{count}} {{host}}
|
||
|
|
expect: exit-0
|
||
|
|
threat_checks:
|
||
|
|
- Do not paste credentials into any parameter; parameters are never secret.
|
||
|
|
ownership:
|
||
|
|
- {concern: The host itself, owner: whoever runs it}
|