2013-08-02 11:06:29 -07:00
|
|
|
# Slave used for automatically proposing changes to Gerrit,
|
|
|
|
# Transifex and other tools.
|
|
|
|
#
|
2012-11-15 14:25:13 -08:00
|
|
|
# == Class: openstack_project::translation_slave
|
|
|
|
#
|
2013-08-02 11:06:29 -07:00
|
|
|
class openstack_project::proposal_slave (
|
2013-06-01 19:40:07 -07:00
|
|
|
$jenkins_ssh_public_key,
|
2014-04-11 13:49:31 -07:00
|
|
|
$proposal_ssh_public_key,
|
|
|
|
$proposal_ssh_private_key,
|
2015-03-05 13:28:05 +01:00
|
|
|
$jenkins_gitfullname = 'OpenStack Jenkins',
|
|
|
|
$jenkins_gitemail = 'jenkins@openstack.org',
|
2015-06-29 10:20:39 -04:00
|
|
|
$project_config_repo = 'https://git.openstack.org/openstack-infra/project-config',
|
2015-04-22 12:12:49 -07:00
|
|
|
$zanata_server_url,
|
|
|
|
$zanata_server_user,
|
|
|
|
$zanata_server_api_key,
|
2012-08-14 12:47:01 -07:00
|
|
|
) {
|
2015-04-22 12:12:49 -07:00
|
|
|
|
|
|
|
class { '::zanata::client':
|
|
|
|
server_url => $zanata_server_url,
|
|
|
|
server_user => $zanata_server_user,
|
|
|
|
server_api_key => $zanata_server_api_key,
|
|
|
|
}
|
2012-08-14 12:47:01 -07:00
|
|
|
|
2013-06-01 19:40:07 -07:00
|
|
|
class { 'openstack_project::slave':
|
2015-03-05 13:28:05 +01:00
|
|
|
ssh_key => $jenkins_ssh_public_key,
|
|
|
|
jenkins_gitfullname => $jenkins_gitfullname,
|
|
|
|
jenkins_gitemail => $jenkins_gitemail,
|
2015-06-29 10:20:39 -04:00
|
|
|
project_config_repo => $project_config_repo,
|
2013-06-01 19:40:07 -07:00
|
|
|
}
|
2012-08-14 12:47:01 -07:00
|
|
|
|
2015-12-21 16:16:06 -06:00
|
|
|
package { ['Babel', 'pyopenssl', 'ndg-httpsclient', 'pyasn1',
|
2016-01-25 08:30:22 +01:00
|
|
|
'pyyaml', 'requestsexceptions']:
|
2012-11-15 14:25:13 -08:00
|
|
|
ensure => latest,
|
2012-08-14 12:47:01 -07:00
|
|
|
provider => pip,
|
2012-11-15 14:25:13 -08:00
|
|
|
require => Class['pip'],
|
2012-08-14 12:47:01 -07:00
|
|
|
}
|
|
|
|
|
2013-08-05 10:38:59 -07:00
|
|
|
file { '/home/jenkins/.ssh/id_rsa':
|
|
|
|
owner => 'jenkins',
|
|
|
|
group => 'jenkins',
|
|
|
|
mode => '0400',
|
|
|
|
require => File['/home/jenkins/.ssh'],
|
2014-04-11 13:49:31 -07:00
|
|
|
content => $proposal_ssh_private_key,
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/home/jenkins/.ssh/id_rsa.pub':
|
|
|
|
owner => 'jenkins',
|
|
|
|
group => 'jenkins',
|
|
|
|
mode => '0400',
|
|
|
|
require => File['/home/jenkins/.ssh'],
|
|
|
|
content => $proposal_ssh_public_key,
|
2013-08-05 10:38:59 -07:00
|
|
|
}
|
2012-08-14 12:47:01 -07:00
|
|
|
}
|