Guest User

Untitled

a guest
Jul 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. [rip@nephilim]% ./pi file
  2. file
  3. ====
  4. Manages local files, including setting ownership and
  5. permissions, creation of both files and directories, and
  6. retrieving entire files from remote servers. As Puppet matures, it
  7. expected that the ``file`` resource will be used less and less to
  8. manage content, and instead native resources will be used to do so.
  9.  
  10. If you find that you are often copying files in from a central
  11. location, rather than using native resources, please contact
  12. Reductive Labs and we can hopefully work with you to develop a
  13. native resource to support what you are doing.
  14.  
  15.  
  16. Parameters
  17. ----------
  18.  
  19. - **backup**
  20. Whether files should be backed up before
  21. being replaced. The preferred method of backing files up is via
  22. a ``filebucket``, which stores files by their MD5 sums and allows
  23. easy retrieval without littering directories with backups. You
  24. can specify a local filebucket or a network-accessible
  25. server-based filebucket by setting ``backup => bucket-name``.
  26. Alternatively, if you specify any value that begins with a ``.``
  27. (e.g., ``.puppet-bak``), then Puppet will use copy the file in
  28. the same directory with that value as the extension of the
  29. backup. Setting ``backup => false`` disables all backups of the
  30. file in question.
  31.  
  32. Puppet automatically creates a local filebucket named ``puppet`` and
  33. defaults to backing up there. To use a server-based filebucket,
  34. you must specify one in your configuration::
  35.  
  36. filebucket { main:
  37. server => puppet
  38. }
Add Comment
Please, Sign In to add comment