some refactoring, externalizing classes

This commit is contained in:
do
2013-05-05 21:06:45 +02:00
parent aaea443943
commit fb837f76a9
7 changed files with 130 additions and 93 deletions

View File

@@ -1,11 +1,9 @@
#!/usr/bin/env bash
# $Id: puppetd_run.sh 2714 2009-08-01 09:52:05Z uwaechte $
# a wrapper script, to run puppetd after a random time
# this will be called by cron at the same time on each client,
# but should not call the master at the same time as the others.
export FACTERLIB="/var/lib/puppet/facts"
[ -e /etc/profile ] && . /etc/profile
PATH=/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PUPPET=$(which puppetd)
ISUNIIP=$(ifconfig |grep -c -e "131\.173\.3[2345]")