Using erwbgy-system module to associate hiera hash entries with types, I have the following construct:
(Be not confused in following examples: `true` is a standard posix command and does not mean a boolean value here.)
First, a few baselines:
- note, trailing whitespace after "echo" below
- note, command broken on two lines
Here is what DOES NOT work:
Results in ```
Error: /Stage[main]/System::Execs/Exec[test123]: Could not evaluate: Could not find command 'true
We get similar errors if the command is command is in attributes `onlyif`, `unless`.
The combined examples demonstrate that trailing whitespace is ignored/stripped, but trailing newlines are not. This is unexpected behavior. The problem probably arises from provider's validation step to ensure the command exists; this has always been dubious and incorrect (IMHO) behavior: just try and run the thing; it does no one any good to determine what the OS will report.