summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-12 02:57:25 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-03-12 02:57:25 +0000
commitaed1f1181577b550c19589ab3e4840427cf31869 (patch)
tree60ce833d0632b22e6539a88febadc07bbd43d4b0 /lib/puppet
parent5a47afdd4f8f51c9403a83712eaa700913fd93c4 (diff)
downloadpuppet-aed1f1181577b550c19589ab3e4840427cf31869.tar.gz
puppet-aed1f1181577b550c19589ab3e4840427cf31869.tar.xz
puppet-aed1f1181577b550c19589ab3e4840427cf31869.zip
Ooops, did not save the docs before committing.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1013 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type/pfile.rb29
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb
index 8df5bc67e..d6f0ef836 100644
--- a/lib/puppet/type/pfile.rb
+++ b/lib/puppet/type/pfile.rb
@@ -34,7 +34,34 @@ module Puppet
desc "Whether files should be backed up before
being replaced. If a filebucket_ is specified, files will be
backed up there; else, they will be backed up in the same directory
- with a ``.puppet-bak`` extension."
+ with a ``.puppet-bak`` extension.
+
+ To use filebuckets, you must first create a filebucket in your
+ configuration::
+
+ filebucket { main:
+ server => puppet
+ }
+
+ ``puppetmasterd`` creates a filebucket by default, so you can
+ usually back up to your main server with this configuration. Once
+ you've described the bucket in your configuration, you can use
+ it in any file::
+
+ file { \"/my/file\":
+ source => \"/path/in/nfs/or/something\",
+ backup => main
+ }
+
+ This will back the file up to the central server.
+
+ At this point, the only benefits to doing so are that you do not
+ have backup files lying around on each of your machines, a given
+ version of a file is only backed up once, and you can restore
+ any given file manually, no matter how old. Eventually,
+ transactional support will be able to automatically restore
+ filebucketed files.
+ "
attr_reader :bucket
defaultto true