Librarian puppet changes

These are the changes done in librarian-puppet to librarian. If they become part of librarian we could just use the gem.

Thanks!