X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Ftips.mdwn;h=5123b1f06a04642c43f60ca8afea2917e92c6519;hb=HEAD;hp=b6879ba74ad34d19ca8c92d0f932b17449c198a8;hpb=8b703568c70eeb6954e1cfd03e941b7221b16295;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/tips.mdwn b/input/howto/tips.mdwn index b6879ba..5123b1f 100644 --- a/input/howto/tips.mdwn +++ b/input/howto/tips.mdwn @@ -1,6 +1,7 @@ Some things DSA members might like to do: * setup procmail to discard mail about successful backups + and mail about commits to the staging branch of dsa-puppet * add an account on nagios.d.o htpasswd * add nagios account to nagios contacts * run nagstamon or load nagios.d.o daily @@ -8,3 +9,13 @@ Some things DSA members might like to do: * load munin.d.o/problems.html daily * always update samhain after doing anything * when adding new nagios checks, don't enable them on all hosts until they have propagated + * setup puppet pre-commit lint check: + + sudo apt install puppet puppet-lint puppet-strings r10k + git clone https://github.com/cmeissner/puppet-git-hooks /path/to/puppet-git-hooks + cat >> /path/to/puppet-git-hooks/commit_hooks/config.cfg << EOF + # local changes + CHECK_PUPPET_LINT="permissive" # enabled, permissive or disabled (permissive runs but return code is ignored) + CHECK_PUPPET_DOCS="permissive" # enabled, permissive or disabled (permissive runs but return code is ignored) + EOF + ln -s /absolute/path/to/puppet-git-hooks/pre-commit /path/to/dsa-puppet/.git/pre-commit