system-config/modules/openstack_project/manifests/mirror_slave.pp
Jeremy Stanley 06767389b4 Remove direct mirror_slave depends on python-yaml.
* modules/openstack_project/manifests/mirror_slave.pp: Remove the
package declaration for python-yaml since the jeepyb module, which
is already included, depends on it in a more platform-independent
manner anyway.

Change-Id: Iacdf1b0073089f193d8eff34ebcf50e6aa59e669
Reviewed-on: https://review.openstack.org/28655
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-05-09 04:27:21 +00:00

71 lines
1.9 KiB
Puppet

# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# Install a python mirror building slave.
class openstack_project::mirror_slave (
$jenkins_ssh_private_key,
) {
include openstack_project::slave
include jeepyb
file { '/home/jenkins/.ssh/id_rsa':
owner => 'jenkins',
group => 'jenkins',
mode => '0400',
require => File['/home/jenkins/.ssh'],
content => $jenkins_ssh_private_key,
}
file { '/home/jenkins/pypimirror':
ensure => directory,
mode => '0755',
owner => 'jenkins',
group => 'jenkins',
require => User['jenkins'],
}
file { '/home/jenkins/pypimirror/etc':
ensure => directory,
mode => '0755',
owner => 'jenkins',
group => 'jenkins',
require => File['/home/jenkins/pypimirror'],
}
file { '/home/jenkins/pypimirror/cache':
ensure => directory,
mode => '0755',
owner => 'jenkins',
group => 'jenkins',
require => File['/home/jenkins/pypimirror'],
}
file { '/home/jenkins/pypimirror/mirror':
ensure => directory,
mode => '0755',
owner => 'jenkins',
group => 'jenkins',
require => File['/home/jenkins/pypimirror'],
}
file { '/home/jenkins/pypimirror/etc/pypi-mirror.yaml':
ensure => present,
source => 'puppet:///modules/openstack_project/jenkins-pypi-mirror.yaml',
require => File['/home/jenkins/pypimirror/etc'],
}
}