https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 5df577c18c0b31567850b416b298e75dd8fad4e1 authored by RobH on 23 October 2012, 16:06:34 UTC
analytics1011-1022 are being returned for new hardware, decommissioning the name so it removes from nagios as well as dhcp files
Tip revision: 5df577c
local-lint
#!/bin/bash

echo "Running a local test parse of puppet..."

sed -i 's%^import "../private%#LINT#import "../private%' manifests/base.pp

# Run the parser validation step, but ignore warnings about storeconfigs not
# being set, as that is only set on the puppet master.
puppet parser validate manifests/site.pp \
    | grep -v "You cannot collect.*storeconfig"

sed -i 's%^#LINT#import "../private%import "../private%' manifests/base.pp
back to top