summaryrefslogtreecommitdiffstats
path: root/examples/Bundler
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-07-31 00:58:06 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-07-31 00:58:06 +0000
commit770daad7cc4db1a2be8de655bd2e4930dbee236d (patch)
treea141a546d66d476267527970acc8d98b29be7592 /examples/Bundler
parent4b26e437feabdc52ea639d017e6083176b281710 (diff)
downloadbcfg2-770daad7cc4db1a2be8de655bd2e4930dbee236d.tar.gz
bcfg2-770daad7cc4db1a2be8de655bd2e4930dbee236d.tar.bz2
bcfg2-770daad7cc4db1a2be8de655bd2e4930dbee236d.zip
example repository: Add Dirvish configuration example
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5396 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'examples/Bundler')
-rw-r--r--examples/Bundler/sgenshi-dirvish.genshi23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/Bundler/sgenshi-dirvish.genshi b/examples/Bundler/sgenshi-dirvish.genshi
new file mode 100644
index 000000000..2eb8acd75
--- /dev/null
+++ b/examples/Bundler/sgenshi-dirvish.genshi
@@ -0,0 +1,23 @@
+<!--
+vim: ft=xml
+-->
+<Bundle name='sgenshi-dirvish' xmlns:py="http://genshi.edgewall.org/">
+<py:for each="user in metadata.Properties['dirvish.xml'].data.find('users')">
+<!-- Generate configs for all users in dirvish.xml -->
+<BoundConfigFile
+ name='/backup/homes/${user.tag}/dirvish/default.conf'
+ owner='root'
+ group='root'
+ perms='0644'>client: nfs-host
+tree: /export/homes/${user.text}
+exclude:
+ *~
+ .nfs*
+</BoundConfigFile>
+</py:for>
+
+<Package name='dirvish'/>
+<ConfigFile name='/etc/cron.d/dirvish'/>
+<ConfigFile name='/etc/dirvish/dirvish-cronjob'/>
+<ConfigFile name='/etc/dirvish/master.conf'/>
+</Bundle>