Merge "Add Jenkins SSH key to proposal.slave."
This commit is contained in:
commit
f6a8fc2ce8
@ -433,6 +433,7 @@ node 'proposal.slave.openstack.org' {
|
|||||||
transifex_username => 'openstackjenkins',
|
transifex_username => 'openstackjenkins',
|
||||||
transifex_password => hiera('transifex_password'),
|
transifex_password => hiera('transifex_password'),
|
||||||
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
jenkins_ssh_public_key => $openstack_project::jenkins_ssh_key,
|
||||||
|
jenkins_ssh_private_key => hiera('jenkins_ssh_private_key_contents'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#
|
#
|
||||||
class openstack_project::proposal_slave (
|
class openstack_project::proposal_slave (
|
||||||
$jenkins_ssh_public_key,
|
$jenkins_ssh_public_key,
|
||||||
|
$jenkins_ssh_private_key,
|
||||||
$transifex_password = '',
|
$transifex_password = '',
|
||||||
$transifex_username = 'openstackci',
|
$transifex_username = 'openstackci',
|
||||||
) {
|
) {
|
||||||
@ -27,4 +28,12 @@ class openstack_project::proposal_slave (
|
|||||||
content => template('openstack_project/transifexrc.erb'),
|
content => template('openstack_project/transifexrc.erb'),
|
||||||
require => User['jenkins'],
|
require => User['jenkins'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/home/jenkins/.ssh/id_rsa':
|
||||||
|
owner => 'jenkins',
|
||||||
|
group => 'jenkins',
|
||||||
|
mode => '0400',
|
||||||
|
require => File['/home/jenkins/.ssh'],
|
||||||
|
content => $jenkins_ssh_private_key,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user