Nikolay Mahotkin fe97ac5aad Fixing keys issue in Jenkins
* Added key generation to Jenkins
 * If Gerrit is provided, create jenkins user
   and pass jenkins public key to Gerrit
 * Fixed CI/CD app for these changes
 * Fixed copy private jenkins key to /home/jenkins/.ssh

Change-Id: I26a7722e15aaf04274fae9ed437f45af5b213b95
2016-05-13 20:02:48 +03:00

9 lines
162 B
Puppet

node default {
$ssh_key = hiera('jenkins_ssh_pubkey_contents', undef)
if $ssh_key {
class { 'jenkins::jenkinsuser':
ssh_key => $ssh_key
}
}
}