From ce6c2090d13d25f509ee2444514203025823c5c2 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Tue, 4 Jun 2024 14:58:35 +0200 Subject: [PATCH] Add a HEREDOC example When the last parameter is HEREDOC the solution to this linter is really not obvious. Add an explicit example. --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 8cc5436..0ab956d 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,15 @@ file { '/etc/sudoers': } ``` +```puppet +file { '/etc/file': + ensure => file, + content => @(EOF) + Content + | EOF +} +``` + #### What you should have done ```puppet @@ -48,6 +57,14 @@ file { '/etc/sudoers': } ``` +```puppet +file { '/etc/file': + ensure => file, + content => @(EOF), + Content + | EOF +} +``` #### Disabling the check