puppet-clientbucket-restore
puppet-clientbucket-restore copied to clipboard
Added option, support for pointing to client bucket path
- I changed it over to optionparser, to allow manipulation of the arguemnts
- Also, since the path to Clientbucket has changed with Puppet 4, I added an option to allow the user to point to a different path to the bucket. To ensure backwards compatibility, it defaults to the old path (Puppet 3.x and earlier).
I modified the path with shell command to determine what is the correct path for this server.
clientbucket_path = puppet config print clientbucketdir
.chomp