Guest User

Untitled

a guest
May 20th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. CASE 1:
  2. -------
  3. ## This will update my old.txt by new.txt(old.txt -> new.txt),
  4. ## and will backup the old.txt on the
  5. ## "/Users/abhinavmehta/dev/practice/puppet/zoneExample/bkp"-path.
  6. ## Working fine, no issues.
  7. filebucket { main:
  8. path => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/bkp",
  9. }
  10.  
  11. file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
  12. backup => main1,
  13. source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
  14. }
  15.  
  16.  
  17. CASE 2:
  18. -------
  19. ## This will also update my old.txt by new.txt(old.txt -> new.txt),
  20. ## and will backup the old.txt on the SERVER/HOST eg. "puppet.example.com"
  21. ## Works fine, no issues.
  22. filebucket { main:
  23. server => "puppet.example.com",
  24. }
  25.  
  26. file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
  27. backup => main,
  28. source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
  29. }
  30.  
  31.  
  32. CASE 3:
  33. -------
  34. ## I expect this should also work, and actually its even working.
  35. ## The problem is, I'm not getting path for my backup'd files.
  36. ## I've explored puppet.conf too, but fail to find that path.
  37. filebucket { main:
  38. server => ::$fqdn,
  39. }
  40.  
  41. file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
  42. backup => main,
  43. source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
  44. }
  45.  
  46.  
  47.  
  48. ## So, where my old files are moving or getting stored ?
Add Comment
Please, Sign In to add comment