diff options
author | Antony Deepak Thomas <antonydeepak@gmail.com> | 2021-09-12 12:50:01 -0700 |
---|---|---|
committer | Antony Deepak Thomas <antonydeepak@gmail.com> | 2021-09-13 12:26:41 -0700 |
commit | ff0b652650468ac0bc79e1ccb0e18faf9b4f8e8b (patch) | |
tree | 3c758dd443706733282ea8f2bff877d3b873e6e2 /docs | |
parent | 296edf56682fcf5c6f512bc8255325b869a4b36c (diff) | |
download | chef-ff0b652650468ac0bc79e1ccb0e18faf9b4f8e8b.tar.gz |
Add Yaml verifier
This patch adds Yaml verifier to the list of built-in verifiers. Yaml
verifier can be used on `file` like resources such as `file`, `template`
etc.
Signed-off-by: Antony Deepak Thomas <antonydeepak@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/design_documents/resource_file_content_verification.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/dev/design_documents/resource_file_content_verification.md b/docs/dev/design_documents/resource_file_content_verification.md index f813e57c72..3df3083395 100644 --- a/docs/dev/design_documents/resource_file_content_verification.md +++ b/docs/dev/design_documents/resource_file_content_verification.md @@ -81,15 +81,20 @@ template "/etc/nginx.conf" do end ``` -Chef may ship built-in verifiers for common checks, such as -content-type verification. Built-in verifiers can be used by passing -well-known symbols to the verify attribute: +Chef ships built-in verifiers for common content-types such as +`:systemd_unit`, `:yaml` and `:json`. Built-in verifiers can be +used by passing well-known symbols to the verify attribute: ```ruby template "/etc/config.json" do verify :json end ``` +```ruby +template "/etc/config.yaml" do + verify :yaml +end +``` ## Motivation |