Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CASE 1:
- -------
- ## This will update my old.txt by new.txt(old.txt -> new.txt),
- ## and will backup the old.txt on the
- ## "/Users/abhinavmehta/dev/practice/puppet/zoneExample/bkp"-path.
- ## Working fine, no issues.
- filebucket { main:
- path => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/bkp",
- }
- file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
- backup => main1,
- source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
- }
- CASE 2:
- -------
- ## This will also update my old.txt by new.txt(old.txt -> new.txt),
- ## and will backup the old.txt on the SERVER/HOST eg. "puppet.example.com"
- ## Works fine, no issues.
- filebucket { main:
- server => "puppet.example.com",
- }
- file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
- backup => main,
- source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
- }
- CASE 3:
- -------
- ## I expect this should also work, and actually its even working.
- ## The problem is, I'm not getting path for my backup'd files.
- ## I've explored puppet.conf too, but fail to find that path.
- filebucket { main:
- server => ::$fqdn,
- }
- file { "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/old.txt":
- backup => main,
- source => "/Users/abhinavmehta/dev/practice/puppet/zoneExample/files/new.txt",
- }
- ## So, where my old files are moving or getting stored ?
Add Comment
Please, Sign In to add comment