8cb2e3b632
openstack_project/static.pp needs to include openstack_project in order to use openstack_project::jenkins_ssh_key. Make it so. Change-Id: I4abe98492e32307aa1ba18c1efa485e8b5181b2e Reviewed-on: https://review.openstack.org/12722 Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
55 lines
1.0 KiB
Puppet
55 lines
1.0 KiB
Puppet
class openstack_project::static (
|
|
$sysadmins = []
|
|
) {
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [22, 80, 443],
|
|
sysadmins => $sysadmins
|
|
}
|
|
|
|
include openstack_project
|
|
class { 'jenkins::jenkinsuser':
|
|
ssh_key => $openstack_project::jenkins_ssh_key
|
|
}
|
|
|
|
include apache
|
|
|
|
apache::vhost { 'tarballs.openstack.org':
|
|
port => 80,
|
|
priority => '50',
|
|
docroot => '/srv/static/tarballs',
|
|
require => File['/srv/static/tarballs'],
|
|
}
|
|
|
|
apache::vhost { 'ci.openstack.org':
|
|
port => 80,
|
|
priority => '50',
|
|
docroot => '/srv/static/ci',
|
|
require => File['/srv/static/ci'],
|
|
}
|
|
|
|
apache::vhost { 'logs.openstack.org':
|
|
port => 80,
|
|
priority => '50',
|
|
docroot => '/srv/static/logs',
|
|
require => File['/srv/static/logs'],
|
|
}
|
|
|
|
file { '/srv/static':
|
|
ensure => directory
|
|
}
|
|
|
|
file { '/srv/static/tarballs':
|
|
ensure => directory
|
|
}
|
|
|
|
file { '/srv/static/ci':
|
|
ensure => directory
|
|
}
|
|
|
|
file { '/srv/static/logs':
|
|
ensure => directory
|
|
}
|
|
|
|
}
|