Please review this node check script

27 views
Skip to first unread message

Sandra Schlichting

unread,
Oct 10, 2012, 1:30:52 PM10/10/12
to puppet...@googlegroups.com
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

brackets.pl
brackets.sh
Reply all
Reply to author
Forward
0 new messages