summaryrefslogtreecommitdiffstats
path: root/examples/Bundler/dirvish.xml
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-04 16:20:46 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-04 16:20:46 -0500
commit1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2 (patch)
treece0a378dbe59fedb388b29de1307eebf66ef6501 /examples/Bundler/dirvish.xml
parentdfe9dac83a9f6553b9d075fa14fcd28235aabda9 (diff)
downloadbcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.tar.gz
bcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.tar.bz2
bcfg2-1f6cb52d0c43f842766f3ecd6c8286f0f4eed5c2.zip
Bundler: various changes
* Deprecated use of an explicit name attribute * Deprecated .genshi bundles * Minor restructuring for better performance * bcfg2-lint updates
Diffstat (limited to 'examples/Bundler/dirvish.xml')
-rw-r--r--examples/Bundler/dirvish.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/Bundler/dirvish.xml b/examples/Bundler/dirvish.xml
new file mode 100644
index 000000000..47bf8cf54
--- /dev/null
+++ b/examples/Bundler/dirvish.xml
@@ -0,0 +1,20 @@
+<Bundle xmlns:py="http://genshi.edgewall.org/">
+ <py:for each="user in metadata.Properties['dirvish.xml'].xdata.find('users')">
+ <!-- Generate configs for all users in dirvish.xml -->
+ <BoundPath
+ name='/backup/homes/${user.tag}/dirvish/default.conf'
+ owner='root'
+ group='root'
+ perms='0644'>client: nfs-host
+tree: /export/homes/${user.text}
+exclude:
+ *~
+ .nfs*
+ </BoundPath>
+ </py:for>
+
+ <Package name='dirvish'/>
+ <Path name='/etc/cron.d/dirvish'/>
+ <Path name='/etc/dirvish/dirvish-cronjob'/>
+ <Path name='/etc/dirvish/master.conf'/>
+</Bundle>