Skip to content

Checkers

Aru Sahni edited this page Jun 18, 2016 · 1 revision

Out of the box, the following checkers are available.

Name Description Args
env Check environment state
  • name: Variable name
  • value: (optional) Variable value
dir Check directory state
  • path: Directory path
  • present: (optional, default=True) False if the directory should be absent.
file Check file state
  • path: File path
  • present: (optional, default=True) False if the file should be absent.
psql Check PostgreSQL state
  • host: (optional, default=localhost) Postgres hostname
  • port: (optional, default=5432) Postgres server port
  • dbname: (optional, default=None) The database name for which to test
web Check web service state
  • url: The webservice URL
  • statuses: (optional, default=None) A collection of acceptable status codes (aside from 200).
Clone this wiki locally