Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Commit

Permalink
Merge "Break dependency on jenkins::slave"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 10, 2017
2 parents fda5cff + 5e62f09 commit ed3e133
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
35 changes: 31 additions & 4 deletions modules/openstack_project/manifests/single_use_slave.pp
Expand Up @@ -40,12 +40,39 @@
],
iptables_public_tcp_ports => [19885],
}
class { 'jenkins::slave':
ssh_key => $ssh_key,
gitfullname => $jenkins_gitfullname,
gitemail => $jenkins_gitemail,

include ::haveged
include ::pip

class { '::jenkins::jenkinsuser':
ssh_key => $ssh_key,
gitfullname => $jenkins_gitfullname,
gitemail => $jenkins_gitemail,
}

# NOTE(pabelanger): We need to create this directory here, since slave.pp also
# creates it. Moving forward, this will be moved into DIB.
file { '/usr/local/jenkins':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755',
}

package { 'tox':
ensure => 'latest',
provider => openstack_pip,
require => Class[pip],
}

# TODO(fungi): switch jobs to use /usr/git-review-env/bin/git-review
package { 'git-review':
ensure => '1.25.0',
provider => openstack_pip,
require => Class[pip],
}


class { 'openstack_project::slave_common':
sudo => $sudo,
project_config_repo => $project_config_repo,
Expand Down
2 changes: 1 addition & 1 deletion modules/openstack_project/manifests/slave_common.pp
Expand Up @@ -49,7 +49,7 @@
group => 'jenkins',
mode => '0644',
source => 'puppet:///modules/openstack_project/pydistutils.cfg',
require => Class['jenkins::slave'],
require => Class['jenkins::jenkinsuser'],
}

if ($sudo == true) {
Expand Down

0 comments on commit ed3e133

Please sign in to comment.