Hi,
The attached script is made for those who have one node per file and want to catch if something have been made global by being outside on the node block.
Example:
node xxx { ... }
package{...}
if ... { ... }
which should have been
node xxx { ...
package{...}
if ... { ... }
}
Adjust the path in brackets.sh to your needs and in puppet.conf add
prerun_command = /path/to/brackets.sh
The script is READ ONLY, and doesn't change any of your files.
Please test it on your node pp files, and report any bugs =)
Hugs,
Sandra