From 65b9869362cd39f20609abb93729cb0c3977f0cf Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Tue, 15 Jul 2008 17:15:05 +1000 Subject: Further moves from the examples directory and ext directory --- examples/etc/init.d/sleeper | 72 ++++++++++++++++++++++++++++++++++ examples/etc/otherfile | 0 examples/etc/puppet/fileserver.conf | 13 ++++++ examples/etc/puppet/namespaceauth.conf | 20 ++++++++++ examples/etc/puppet/puppet.conf | 10 +++++ examples/etc/puppet/tagmail.conf | 1 + 6 files changed, 116 insertions(+) create mode 100755 examples/etc/init.d/sleeper create mode 100644 examples/etc/otherfile create mode 100644 examples/etc/puppet/fileserver.conf create mode 100644 examples/etc/puppet/namespaceauth.conf create mode 100644 examples/etc/puppet/puppet.conf create mode 100644 examples/etc/puppet/tagmail.conf (limited to 'examples') diff --git a/examples/etc/init.d/sleeper b/examples/etc/init.d/sleeper new file mode 100755 index 000000000..6da5eae32 --- /dev/null +++ b/examples/etc/init.d/sleeper @@ -0,0 +1,72 @@ +#!/bin/bash + +# $Id$ + +script=$0 +path=`echo $script | sed 's/etc..*/bin/'` + +PATH=$PATH:$path + +ps=`facter ps` + +if [ -z "$ps" ]; then + ps="ps -ef" +fi + +function start +{ + cd $path + ./sleeper +} + +function stop +{ + #if [ -n `which pgrep` ]; then + # pid=`pgrep sleeper` + #else + pid=`$ps | grep -v grep | grep sleeper | grep ruby | awk '{print $2}'` + #fi + if [ -n "$pid" ]; then + kill $pid + fi +} + +function restart +{ + stop + start +} + +function status +{ + #if [ -n `which pgrep` ]; then + # cmd="pgrep sleeper" + #else + #cmd="$ps | grep -v grep | grep sleeper | grep ruby | awk '{print $2}'" + #fi + #$cmd + $ps | grep -v grep | grep sleeper | grep ruby +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart) + stop; start + ;; + status) + output=`status` + #status + exit $? + ;; + *) + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/examples/etc/otherfile b/examples/etc/otherfile new file mode 100644 index 000000000..e69de29bb diff --git a/examples/etc/puppet/fileserver.conf b/examples/etc/puppet/fileserver.conf new file mode 100644 index 000000000..32dfcdd5c --- /dev/null +++ b/examples/etc/puppet/fileserver.conf @@ -0,0 +1,13 @@ +# $Id$ + +[dist] + path /dist + allow *.madstop.com + +[plugins] + path /var/puppet/plugins + allow *.madstop.com + +[facts] + path /var/puppet/facts + allow *.madstop.com diff --git a/examples/etc/puppet/namespaceauth.conf b/examples/etc/puppet/namespaceauth.conf new file mode 100644 index 000000000..fb08d428b --- /dev/null +++ b/examples/etc/puppet/namespaceauth.conf @@ -0,0 +1,20 @@ +# This file is only necessary if your clients listen. +# Note that it affects all puppet daemons, including puppetmasterd, +# which is why puppetmaster is in there. +[fileserver] + allow *.madstop.com + +[puppetmaster] + allow *.madstop.com + +[pelementserver] + allow puppet.madstop.com + +[puppetrunner] + allow culain.madstop.com + +[puppetbucket] + allow *.madstop.com + +[puppetreports] + allow *.madstop.com diff --git a/examples/etc/puppet/puppet.conf b/examples/etc/puppet/puppet.conf new file mode 100644 index 000000000..151364ebd --- /dev/null +++ b/examples/etc/puppet/puppet.conf @@ -0,0 +1,10 @@ +[puppetd] +report = true +factsync = true +pluginsync = true + +[puppetmasterd] +reports = store,rrdgraph,tagmail,log +node_terminus = ldap +ldapserver = culain.madstop.com +ldapbase = dc=madstop,dc=com diff --git a/examples/etc/puppet/tagmail.conf b/examples/etc/puppet/tagmail.conf new file mode 100644 index 000000000..31c77f4bc --- /dev/null +++ b/examples/etc/puppet/tagmail.conf @@ -0,0 +1 @@ +all: user@domain.com -- cgit