diff options
author | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-24 02:59:47 +0000 |
---|---|---|
committer | Daniel Joseph Barnhart Clark <dclark@pobox.com> | 2006-08-24 02:59:47 +0000 |
commit | 7a90ea4debcdcb729197fbd926e8a0e840b312a6 (patch) | |
tree | b981d7b6e40ef7cee8704a2e58808f76e19d059e /encap/src/bcfg2-site/bcfg2-site-RENAME | |
parent | 0079453227dbcdd5f4b8c3077a82be658c046337 (diff) | |
download | bcfg2-7a90ea4debcdcb729197fbd926e8a0e840b312a6.tar.gz bcfg2-7a90ea4debcdcb729197fbd926e8a0e840b312a6.tar.bz2 bcfg2-7a90ea4debcdcb729197fbd926e8a0e840b312a6.zip |
EncapPackages: Restructuring directory layout
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2100 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'encap/src/bcfg2-site/bcfg2-site-RENAME')
13 files changed, 82 insertions, 0 deletions
diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/encapinfo.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/encapinfo.tmpl new file mode 100644 index 000000000..e6af738ac --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/encapinfo.tmpl @@ -0,0 +1,9 @@ +#include "site-settings.conf" +encap 2.1 # libencap-2.3.8 +platform share +date ${DATE} +contact "${ADMIN_NAME}" <${ADMIN_EMAIL}> +description bcfg2-site-${SITE_SHORTNAME} - bcfg2 configuration for ${SITE_NAME} +prereq pkgspec >= bcfg2-0.8.2 +prereq pkgspec >= daemontools-0.76 +prereq pkgspec >= ostiary-3.4 diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/encapname.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/encapname.tmpl new file mode 100644 index 000000000..0c0296a16 --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/encapname.tmpl @@ -0,0 +1,2 @@ +#include "site-settings.conf" +${SITE_SHORTNAME}-${SITE_VERSION} diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/bcfg2.conf.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/bcfg2.conf.tmpl new file mode 100644 index 000000000..536faa82d --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/bcfg2.conf.tmpl @@ -0,0 +1,10 @@ +#include "site-settings.conf" +[communication] +protocol = xmlrpc/ssl +password = ${BCFG2_PASSWORD} + +[components] +bcfg2 = https://${BCFG2_SERVER}:${BCFG2_PORT} + +[statistics] +sendmailpath = ${SENDMAILPATH} diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/.SENTINEL_SITE b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/.SENTINEL_SITE new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/.SENTINEL_SITE diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/OPTIONS.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/OPTIONS.tmpl new file mode 100644 index 000000000..93d733712 --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/OPTIONS.tmpl @@ -0,0 +1,2 @@ +#include "site-settings.conf" +${BCFG2_CLIENT_OPTIONS} diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/RUN_INTERVAL_SECONDS.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/RUN_INTERVAL_SECONDS.tmpl new file mode 100644 index 000000000..e4ff48d09 --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-client/env/RUN_INTERVAL_SECONDS.tmpl @@ -0,0 +1,2 @@ +#include "site-settings.conf" +${BCFG2_CLIENT_RUN_INTERVAL_SECONDS} diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/.SENTINEL_SITE b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/.SENTINEL_SITE new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/.SENTINEL_SITE diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/env/OPTIONS.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/env/OPTIONS.tmpl new file mode 100644 index 000000000..e4283b54e --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/default/bcfg2-server/env/OPTIONS.tmpl @@ -0,0 +1,2 @@ +#include "site-settings.conf" +${BCFG2_SERVER_OPTIONS} diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/ostiary.cfg.tmpl b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/ostiary.cfg.tmpl new file mode 100644 index 000000000..ebc39b61d --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/etc/ostiary.cfg.tmpl @@ -0,0 +1,29 @@ +#include "site-settings.conf" +# If present, ostiaryd will shut down once the cache of bad IPs is full. +# Under daemontools, this just has the effect of generating a service +# restart log message. +EXIT_ON_IPCACHE_FULL + +# If present, ostiaryd will not detach from the terminal it was started +# from. This is useful when running ostiaryd from programs like inetd or +# cygrunsrv or daemontools. +SKIP_DETACH + +# Port to listen on. (Can be specified on command line.) +PORT=${OSTIARY_PORT} + +# The password to remotely kill ostiaryd. Sort of useless when running under +# daemontools, since daemontools will just start ostiaryd back up. (But it +# is required to be in this file) +KILL="${OSTIARY_PASSWORD}-kill" + +# Must be at least one action. Format is: +# ACTION="secret","command (with path)",["uid"[,"gid"]] +# NOTE: There is a maximum of 31 actions +ACTION="${OSTIARY_PASSWORD}-bcfg2-dvqn","/usr/local/sbin/ost-bcfg2.sh dvqn","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-dvn","/usr/local/sbin/ost-bcfg2.sh dvn","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-dvq","/usr/local/sbin/ost-bcfg2.sh dvq","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-dv","/usr/local/sbin/ost-bcfg2.sh dv","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-vq","/usr/local/sbin/ost-bcfg2.sh vq","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-v","/usr/local/sbin/ost-bcfg2.sh v","0","0" +ACTION="${OSTIARY_PASSWORD}-bcfg2-restart","/usr/local/sbin/ost-bcfg2.sh restart","0","0" diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/postinstall diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/preinstall b/encap/src/bcfg2-site/bcfg2-site-RENAME/preinstall new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/preinstall diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh b/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh new file mode 100755 index 000000000..55b20caac --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/sbin/ost-bcfg2.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# +# ost-bcfg2.sh : Control bcfg2 client via ostiary (wrapper script) +# $Id$ +# + +umask 002 +exec 2>&1 + +LOG="multilog t /usr/local/var/multilog/bcfg2-client-ostiary" +PATH=/usr/local/lib/bcfg2/bin:/command:/usr/local/bin:/usr/bin:/bin +export PATH + +case $1 in + dvqn) bcfg2 -d -v -q -n | $LOG ;; + dvn) bcfg2 -d -v -n | $LOG ;; + dvq) bcfg2 -d -v -q | $LOG ;; + dv) bcfg2 -d -v | $LOG ;; + vq) bcfg2 -v -q | $LOG ;; + v) bcfg2 -v | $LOG ;; + restart) svc -t bcfg2-client | $LOG ;; + *) printf "ERROR in $0\n" | $LOG ;; +esac + +exit 0
\ No newline at end of file diff --git a/encap/src/bcfg2-site/bcfg2-site-RENAME/var/encap/bcfg2-site-RENAME b/encap/src/bcfg2-site/bcfg2-site-RENAME/var/encap/bcfg2-site-RENAME new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/encap/src/bcfg2-site/bcfg2-site-RENAME/var/encap/bcfg2-site-RENAME |