Refactor Puppet code for Jenkins from www.lizard

Originally created by @intrigeri on #7107 (Redmine)

See parent ticket for the rationale.

https://github.com/boklm/puppet-sshkeys will probably be needed.

Parent Task: #6056 (closed)

Related issues

Edited by intrigeri