2012-04-08 10:08:55 -07:00
|
|
|
import "openstack"
|
2011-08-02 12:58:08 -07:00
|
|
|
|
2012-05-21 17:53:36 +00:00
|
|
|
$jenkins_ssh_key = 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtioTW2wh3mBRuj+R0Jyb/mLt5sjJ8dEvYyA8zfur1dnqEt5uQNLacW4fHBDFWJoLHfhdfbvray5wWMAcIuGEiAA2WEH23YzgIbyArCSI+z7gB3SET8zgff25ukXlN+1mBSrKWxIza+tB3NU62WbtO6hmelwvSkZ3d7SDfHxrc4zEpmHDuMhxALl8e1idqYzNA+1EhZpbcaf720mX+KD3oszmY2lqD1OkKMquRSD0USXPGlH3HK11MTeCArKRHMgTdIlVeqvYH0v0Wd1w/8mbXgHxfGzMYS1Ej0fzzJ0PC5z5rOqsMqY1X2aC1KlHIFLAeSf4Cx0JNlSpYSrlZ/RoiQ== hudson@hudson'
|
|
|
|
|
2012-04-24 11:29:36 -07:00
|
|
|
class openstack_cron {
|
2012-05-07 17:04:40 -04:00
|
|
|
include logrotate
|
2012-05-22 13:37:30 -04:00
|
|
|
include puppetboot
|
2012-04-24 11:29:36 -07:00
|
|
|
cron { "updatepuppet":
|
|
|
|
user => root,
|
|
|
|
minute => "*/15",
|
2012-05-07 17:04:40 -04:00
|
|
|
command => 'apt-get update >/dev/null 2>&1 ; sleep $((RANDOM\%600)) && cd /root/openstack-ci-puppet && /usr/bin/git pull -q && puppet apply -l /var/log/manifest.log --modulepath=/root/openstack-ci-puppet/modules manifests/site.pp',
|
2012-04-24 11:29:36 -07:00
|
|
|
environment => "PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin",
|
|
|
|
}
|
2012-05-07 17:04:40 -04:00
|
|
|
logrotate::file { 'updatepuppet':
|
|
|
|
log => '/var/log/manifest.log',
|
|
|
|
options => ['compress', 'delaycompress', 'missingok', 'rotate 7', 'daily', 'notifempty'],
|
|
|
|
require => Cron['updatepuppet'],
|
|
|
|
}
|
2012-04-24 11:29:36 -07:00
|
|
|
}
|
|
|
|
|
2012-06-07 19:32:31 +01:00
|
|
|
class remove_openstack_cron {
|
|
|
|
cron { "updatepuppet":
|
|
|
|
ensure => absent
|
|
|
|
}
|
|
|
|
|
|
|
|
file { '/etc/init/puppetboot.conf':
|
|
|
|
ensure => absent
|
|
|
|
}
|
|
|
|
|
|
|
|
file { "/etc/logrotate.d/updatepuppet":
|
|
|
|
ensure => absent
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-02 12:58:08 -07:00
|
|
|
class openstack_jenkins_slave {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-29 08:44:16 -07:00
|
|
|
include tmpreaper
|
2012-06-05 22:59:46 +00:00
|
|
|
include apt::unattended-upgrades
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => []
|
|
|
|
}
|
2012-03-06 13:37:46 +00:00
|
|
|
class { 'jenkins_slave':
|
2012-05-21 17:53:36 +00:00
|
|
|
ssh_key => $jenkins_ssh_key
|
2012-03-06 13:37:46 +00:00
|
|
|
}
|
2011-08-02 12:58:08 -07:00
|
|
|
}
|
|
|
|
|
2011-09-08 13:20:21 -07:00
|
|
|
#
|
|
|
|
# Default: should at least behave like an openstack server
|
|
|
|
#
|
|
|
|
|
|
|
|
node default {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => []
|
|
|
|
}
|
2011-09-08 13:20:21 -07:00
|
|
|
}
|
|
|
|
|
2011-08-02 12:58:08 -07:00
|
|
|
#
|
|
|
|
# Long lived servers:
|
|
|
|
#
|
2012-05-29 18:12:35 +00:00
|
|
|
|
|
|
|
# Current thinking on Gerrit tuning parameters:
|
|
|
|
|
|
|
|
# database.poolLimit:
|
|
|
|
# This limit must be several units higher than the total number of
|
|
|
|
# httpd and sshd threads as some request processing code paths may need
|
|
|
|
# multiple connections.
|
|
|
|
# database.poolLimit = 1 + max(sshd.threads,sshd.batchThreads) + sshd.streamThreads + sshd.commandStartThreads + httpd.acceptorThreads + httpd.maxThreads
|
|
|
|
# http://groups.google.com/group/repo-discuss/msg/4c2809310cd27255
|
|
|
|
# or "2x sshd.threads"
|
|
|
|
# http://groups.google.com/group/repo-discuss/msg/269024c966e05d6a
|
|
|
|
|
|
|
|
# container.heaplimit:
|
|
|
|
# core.packedgit*
|
|
|
|
# http://groups.google.com/group/repo-discuss/msg/269024c966e05d6a
|
|
|
|
|
|
|
|
# sshd.threads:
|
|
|
|
# http://groups.google.com/group/repo-discuss/browse_thread/thread/b91491c185295a71
|
|
|
|
|
|
|
|
node "review.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80, 443, 29418]
|
|
|
|
}
|
2011-08-05 23:00:46 +00:00
|
|
|
class { 'gerrit':
|
2012-04-10 01:16:47 +00:00
|
|
|
virtual_hostname => 'review.openstack.org',
|
2011-08-05 23:00:46 +00:00
|
|
|
canonicalweburl => "https://review.openstack.org/",
|
2012-04-10 01:16:47 +00:00
|
|
|
ssl_cert_file => '/etc/ssl/certs/review.openstack.org.pem',
|
|
|
|
ssl_key_file => '/etc/ssl/private/review.openstack.org.key',
|
|
|
|
ssl_chain_file => '/etc/ssl/certs/intermediate.pem',
|
2012-05-29 18:12:35 +00:00
|
|
|
email => 'review@openstack.org',
|
|
|
|
database_poollimit => '150', # 1 + 100 + 9 + 2 + 2 + 25 = 139(rounded up)
|
|
|
|
container_heaplimit => '8g',
|
|
|
|
core_packedgitopenfiles => '4096',
|
|
|
|
core_packedgitlimit => '400m',
|
|
|
|
core_packedgitwindowsize => '16k',
|
|
|
|
sshd_threads => '100',
|
2011-08-12 22:16:46 +00:00
|
|
|
github_projects => [ {
|
|
|
|
name => 'openstack/keystone',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/glance',
|
|
|
|
close_pull => 'true'
|
2011-09-06 09:48:00 -07:00
|
|
|
}, {
|
|
|
|
name => 'openstack/swift',
|
|
|
|
close_pull => 'true'
|
2011-09-27 11:13:47 -07:00
|
|
|
}, {
|
|
|
|
name => 'openstack/nova',
|
|
|
|
close_pull => 'true'
|
2011-09-06 09:48:00 -07:00
|
|
|
}, {
|
2011-11-02 12:28:36 -04:00
|
|
|
name => 'openstack/horizon',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/quantum',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2011-11-30 13:35:06 -08:00
|
|
|
name => 'openstack/melange',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/tempest',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2011-09-06 09:48:00 -07:00
|
|
|
name => 'openstack/openstack-ci',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/openstack-ci-puppet',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/openstack-puppet',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/openstack-chef',
|
|
|
|
close_pull => 'true'
|
2011-09-13 15:26:49 -07:00
|
|
|
}, {
|
2011-09-15 15:12:02 -07:00
|
|
|
name => 'openstack/openstack-manuals',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2011-09-13 15:26:49 -07:00
|
|
|
name => 'openstack/compute-api',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/image-api',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/identity-api',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/object-api',
|
|
|
|
close_pull => 'true'
|
2011-11-02 12:28:36 -04:00
|
|
|
}, {
|
|
|
|
name => 'openstack/netconn-api',
|
|
|
|
close_pull => 'true'
|
2011-11-16 11:42:26 -08:00
|
|
|
}, {
|
|
|
|
name => 'openstack-dev/devstack',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack-dev/openstack-qa',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/python-novaclient',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-03-28 09:50:19 -07:00
|
|
|
name => 'openstack/python-glanceclient',
|
|
|
|
close_pull => 'true'
|
2011-11-16 11:42:26 -08:00
|
|
|
}, {
|
|
|
|
name => 'openstack-ci/git-review',
|
|
|
|
close_pull => 'true'
|
2012-01-07 12:25:53 -08:00
|
|
|
}, {
|
2012-03-22 17:59:52 +00:00
|
|
|
name => 'openstack-ci/lodgeit',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-04-27 16:23:50 +01:00
|
|
|
name => 'openstack-ci/meetbot',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-05-30 12:16:02 -04:00
|
|
|
name => 'openstack-ci/zuul',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack-ci/pypi-mirror',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-01-07 12:25:53 -08:00
|
|
|
name => 'openstack/openstack-common',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-04-28 15:43:42 -07:00
|
|
|
name => 'openstack/cinder',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
|
|
|
name => 'openstack/python-openstackclient',
|
|
|
|
close_pull => 'true'
|
|
|
|
}, {
|
2012-01-07 12:25:53 -08:00
|
|
|
name => 'openstack-dev/openstack-nose',
|
|
|
|
close_pull => 'true'
|
2012-05-03 13:11:53 -07:00
|
|
|
}, {
|
|
|
|
name => 'openstack/python-cinderclient',
|
|
|
|
close_pull => 'true'
|
2012-05-30 12:16:02 -04:00
|
|
|
}, {
|
|
|
|
name => 'openstack/python-swiftclient',
|
|
|
|
close_pull => 'true'
|
2012-03-12 16:57:38 +00:00
|
|
|
} ],
|
2012-05-10 13:12:31 -04:00
|
|
|
upstream_projects => [ {
|
|
|
|
name => 'openstack-ci/gerrit',
|
|
|
|
remote => 'https://gerrit.googlesource.com/gerrit'
|
|
|
|
} ],
|
2012-04-10 01:16:47 +00:00
|
|
|
logo => 'openstack.png',
|
2012-06-13 09:08:14 -04:00
|
|
|
war => 'http://ci.openstack.org/tarballs/gerrit-2.4-17-gd201697.war',
|
2012-05-17 14:53:01 +01:00
|
|
|
script_user => 'launchpadsync',
|
|
|
|
script_key_file => '/home/gerrit2/.ssh/launchpadsync_rsa',
|
|
|
|
script_site => 'openstack'
|
2011-08-05 23:00:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-04-04 16:00:12 -07:00
|
|
|
node "gerrit-dev.openstack.org", "review-dev.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80, 443, 29418]
|
|
|
|
}
|
2012-03-09 15:59:44 +08:00
|
|
|
|
2011-08-05 23:00:46 +00:00
|
|
|
class { 'gerrit':
|
2012-04-10 01:16:47 +00:00
|
|
|
virtual_hostname => 'review-dev.openstack.org',
|
2011-08-05 23:00:46 +00:00
|
|
|
canonicalweburl => "https://review-dev.openstack.org/",
|
2012-04-10 01:16:47 +00:00
|
|
|
ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
|
|
|
|
ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key',
|
|
|
|
ssl_chain_file => '',
|
2011-08-05 23:00:46 +00:00
|
|
|
email => "review-dev@openstack.org",
|
2011-08-12 22:16:46 +00:00
|
|
|
github_projects => [ {
|
2011-08-17 10:58:49 -07:00
|
|
|
name => 'gtest-org/test',
|
2011-08-12 22:16:46 +00:00
|
|
|
close_pull => 'true'
|
2012-03-12 16:57:38 +00:00
|
|
|
} ],
|
2012-04-10 01:16:47 +00:00
|
|
|
logo => 'openstack.png',
|
2012-06-14 20:04:59 -04:00
|
|
|
war => 'http://ci.openstack.org/tarballs/gerrit-2.4.1-8-g5bbcc7f.war',
|
2012-05-17 14:53:01 +01:00
|
|
|
script_user => 'update',
|
|
|
|
script_key_file => '/home/gerrit2/.ssh/id_rsa',
|
|
|
|
script_site => 'openstack'
|
2011-08-05 23:00:46 +00:00
|
|
|
}
|
2011-08-02 12:58:08 -07:00
|
|
|
}
|
|
|
|
|
2012-01-05 10:55:29 -08:00
|
|
|
node "jenkins.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80, 443, 4155]
|
|
|
|
}
|
2012-03-06 13:37:46 +00:00
|
|
|
class { 'jenkins_master':
|
|
|
|
site => 'jenkins.openstack.org',
|
2012-03-12 16:57:38 +00:00
|
|
|
serveradmin => 'webmaster@openstack.org',
|
2012-04-24 11:02:23 -07:00
|
|
|
logo => 'openstack.png',
|
|
|
|
ssl_cert_file => '/etc/ssl/certs/jenkins.openstack.org.pem',
|
|
|
|
ssl_key_file => '/etc/ssl/private/jenkins.openstack.org.key',
|
|
|
|
ssl_chain_file => '/etc/ssl/certs/intermediate.pem',
|
2012-03-06 13:37:46 +00:00
|
|
|
}
|
2012-05-16 12:30:58 -04:00
|
|
|
class { "jenkins_jobs":
|
|
|
|
site => "openstack",
|
|
|
|
projects => [
|
|
|
|
'cinder',
|
2012-06-04 12:12:19 -07:00
|
|
|
'devstack',
|
|
|
|
'devstack-gate',
|
2012-05-26 12:46:30 -04:00
|
|
|
'gerrit',
|
2012-05-20 12:35:01 -04:00
|
|
|
'glance',
|
2012-05-27 10:17:21 -04:00
|
|
|
'horizon',
|
2012-05-20 12:35:01 -04:00
|
|
|
'keystone',
|
|
|
|
'nova',
|
2012-06-01 16:07:40 -07:00
|
|
|
'openstack-ci-puppet',
|
2012-05-30 12:16:02 -04:00
|
|
|
'pypi-mirror',
|
2012-05-16 12:30:58 -04:00
|
|
|
'python-cinderclient',
|
2012-05-20 12:35:01 -04:00
|
|
|
'python-glanceclient',
|
|
|
|
'python-keystoneclient',
|
|
|
|
'python-novaclient',
|
|
|
|
'python-openstackclient',
|
|
|
|
'python-quantumclient',
|
2012-05-16 12:30:58 -04:00
|
|
|
'python-swiftclient',
|
2012-05-27 10:17:21 -04:00
|
|
|
'quantum',
|
|
|
|
'swift',
|
2012-06-06 09:59:11 -07:00
|
|
|
'tempest',
|
2012-05-30 08:33:55 -07:00
|
|
|
'zuul',
|
2012-05-16 12:30:58 -04:00
|
|
|
]
|
|
|
|
}
|
2012-05-29 22:47:59 +00:00
|
|
|
class { 'zuul': }
|
|
|
|
file { "/etc/zuul/layout.yaml":
|
|
|
|
ensure => 'present',
|
|
|
|
source => 'puppet:///modules/openstack-ci-config/zuul/layout.yaml'
|
|
|
|
}
|
|
|
|
file { "/etc/zuul/logging.conf":
|
|
|
|
ensure => 'present',
|
|
|
|
source => 'puppet:///modules/openstack-ci-config/zuul/logging.conf'
|
|
|
|
}
|
2012-01-05 10:55:29 -08:00
|
|
|
}
|
|
|
|
|
2012-02-28 11:37:20 -08:00
|
|
|
node "jenkins-dev.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
|
|
|
class { 'openstack_server':
|
2012-03-25 12:44:52 -07:00
|
|
|
iptables_public_tcp_ports => [80, 443, 4155]
|
|
|
|
}
|
2012-03-06 13:37:46 +00:00
|
|
|
class { 'jenkins_master':
|
2012-05-21 08:40:40 -07:00
|
|
|
site => 'jenkins-dev.openstack.org',
|
2012-04-24 10:24:39 -07:00
|
|
|
serveradmin => 'webmaster@openstack.org',
|
2012-04-24 11:02:23 -07:00
|
|
|
logo => 'openstack.png',
|
|
|
|
ssl_cert_file => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
|
|
|
|
ssl_key_file => '/etc/ssl/private/ssl-cert-snakeoil.key',
|
|
|
|
ssl_chain_file => '',
|
2012-03-06 13:37:46 +00:00
|
|
|
}
|
2012-02-28 11:37:20 -08:00
|
|
|
}
|
|
|
|
|
2011-09-08 13:17:57 -07:00
|
|
|
node "community.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80, 443, 8099, 8080]
|
|
|
|
}
|
2011-09-08 13:17:57 -07:00
|
|
|
|
2011-09-14 21:20:17 +00:00
|
|
|
realize (
|
|
|
|
User::Virtual::Localuser["smaffulli"],
|
|
|
|
)
|
2011-09-08 13:17:57 -07:00
|
|
|
}
|
|
|
|
|
2012-06-06 20:54:34 +01:00
|
|
|
node "ci-puppetmaster.openstack.org" {
|
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [8140]
|
|
|
|
}
|
|
|
|
cron { "updatepuppetmaster":
|
|
|
|
user => root,
|
|
|
|
minute => "*/15",
|
|
|
|
command => 'sleep $((RANDOM\%600)) && cd /opt/openstack-ci-puppet && /usr/bin/git pull -q',
|
|
|
|
environment => "PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin",
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-27 13:39:40 -07:00
|
|
|
node "lists.openstack.org" {
|
|
|
|
include openstack_cron
|
|
|
|
|
|
|
|
# Using openstack_template instead of openstack_server
|
|
|
|
# because the exim config on this machine is almost certainly
|
|
|
|
# going to be more complicated than normal.
|
|
|
|
class { 'openstack_template':
|
2012-05-04 19:34:31 +01:00
|
|
|
iptables_public_tcp_ports => [25, 80, 465]
|
2012-04-27 13:39:40 -07:00
|
|
|
}
|
|
|
|
|
2012-05-10 19:19:32 +00:00
|
|
|
class { 'exim':
|
|
|
|
sysadmin => ['corvus@inaugust.com',
|
|
|
|
'mordred@inaugust.com',
|
|
|
|
'andrew@linuxjedi.co.uk',
|
|
|
|
'devananda.vdv@gmail.com',
|
2012-06-06 16:30:44 -04:00
|
|
|
'duncan@dreamhost.com'],
|
2012-05-17 11:54:30 -04:00
|
|
|
mailman_domains => ['stagelists.openstack.org'],
|
2012-05-10 19:19:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class { 'mailman':
|
2012-05-17 11:54:30 -04:00
|
|
|
mailman_host => 'stagelists.openstack.org'
|
2012-05-10 19:19:32 +00:00
|
|
|
}
|
2012-04-27 13:39:40 -07:00
|
|
|
|
|
|
|
realize (
|
|
|
|
User::Virtual::Localuser["oubiwann"],
|
|
|
|
)
|
2012-06-06 16:30:44 -04:00
|
|
|
|
|
|
|
file { '/usr/share/mailman/en':
|
|
|
|
owner => 'root',
|
|
|
|
group => 'list',
|
|
|
|
mode => 644,
|
|
|
|
ensure => 'directory',
|
|
|
|
recurse => true,
|
|
|
|
require => Package['mailman'],
|
|
|
|
source => [
|
|
|
|
"puppet://modules/mailman/html-templates-en",
|
|
|
|
],
|
|
|
|
}
|
2012-04-27 13:39:40 -07:00
|
|
|
}
|
|
|
|
|
2011-08-02 12:58:08 -07:00
|
|
|
node "docs.openstack.org" {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => []
|
|
|
|
}
|
2011-08-02 12:58:08 -07:00
|
|
|
include doc_server
|
|
|
|
}
|
|
|
|
|
2012-01-30 13:57:37 +00:00
|
|
|
node "paste.openstack.org" {
|
2012-06-07 19:32:31 +01:00
|
|
|
include remove_openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80]
|
|
|
|
}
|
2012-01-30 13:57:37 +00:00
|
|
|
include lodgeit
|
|
|
|
lodgeit::site { "openstack":
|
|
|
|
port => "5000",
|
|
|
|
image => "header-bg2.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
lodgeit::site { "drizzle":
|
|
|
|
port => "5001"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-02-03 14:37:54 +00:00
|
|
|
node "planet.openstack.org" {
|
2012-06-07 19:32:31 +01:00
|
|
|
include remove_openstack_cron
|
2012-03-25 12:44:52 -07:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80]
|
|
|
|
}
|
2012-02-03 14:37:54 +00:00
|
|
|
include planet
|
2012-03-09 15:59:44 +08:00
|
|
|
|
2012-02-03 14:37:54 +00:00
|
|
|
planet::site { "openstack":
|
|
|
|
git_url => "https://github.com/openstack/openstack-planet.git"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-04-26 18:26:28 +01:00
|
|
|
node "eavesdrop.openstack.org" {
|
2012-06-07 19:32:31 +01:00
|
|
|
include remove_openstack_cron
|
2012-04-15 16:06:41 +01:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80]
|
|
|
|
}
|
|
|
|
include meetbot
|
|
|
|
|
|
|
|
meetbot::site { "openstack":
|
|
|
|
nick => "openstack",
|
|
|
|
network => "FreeNode",
|
|
|
|
server => "chat.us.freenode.net:7000",
|
2012-04-26 18:26:28 +01:00
|
|
|
url => "eavesdrop.openstack.org",
|
2012-04-15 16:06:41 +01:00
|
|
|
channels => "#openstack #openstack-dev #openstack-meeting",
|
|
|
|
use_ssl => "True"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-05-14 09:22:21 -04:00
|
|
|
node "pypi.openstack.org" {
|
|
|
|
include openstack_cron
|
2012-06-04 09:24:07 -04:00
|
|
|
|
|
|
|
# include jenkins slave so that build deps are there for the pip download
|
|
|
|
class { 'jenkins_slave':
|
|
|
|
ssh_key => "",
|
|
|
|
user => false
|
|
|
|
}
|
|
|
|
|
2012-05-14 09:22:21 -04:00
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [80]
|
|
|
|
}
|
2012-06-04 09:24:07 -04:00
|
|
|
|
2012-05-14 09:22:21 -04:00
|
|
|
class { "pypimirror":
|
|
|
|
base_url => "http://pypi.openstack.org",
|
2012-06-04 09:24:07 -04:00
|
|
|
projects => [
|
|
|
|
'cinder',
|
|
|
|
'glance',
|
|
|
|
'horizon',
|
|
|
|
'keystone',
|
|
|
|
'nova',
|
|
|
|
'openstack-common',
|
|
|
|
'python-cinderclient',
|
|
|
|
'python-glanceclient',
|
|
|
|
'python-keystoneclient',
|
|
|
|
'python-novaclient',
|
|
|
|
'python-openstackclient',
|
|
|
|
'python-quantumclient',
|
|
|
|
'python-swiftclient',
|
|
|
|
'quantum',
|
|
|
|
'swift'
|
|
|
|
]
|
2012-05-14 09:22:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-06-06 20:27:31 +00:00
|
|
|
node 'etherpad.openstack.org' {
|
|
|
|
include openstack_cron
|
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [22, 80, 443]
|
|
|
|
}
|
|
|
|
|
|
|
|
realize (
|
|
|
|
User::Virtual::Localuser["clarkb"],
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2012-05-31 23:16:57 +00:00
|
|
|
node 'etherpadlite.openstack.org' {
|
|
|
|
include openstack_cron
|
|
|
|
class { 'openstack_server':
|
|
|
|
iptables_public_tcp_ports => [22, 80, 443]
|
|
|
|
}
|
|
|
|
|
|
|
|
include etherpad_lite
|
|
|
|
class { 'etherpad_lite::nginx':
|
|
|
|
server_name => 'etherpadlite.openstack.org'
|
|
|
|
}
|
|
|
|
include etherpad_lite::site
|
|
|
|
include etherpad_lite::mysql
|
2012-06-04 21:49:48 +00:00
|
|
|
include etherpad_lite::backup
|
2012-05-31 23:16:57 +00:00
|
|
|
}
|
|
|
|
|
2012-03-15 19:17:39 -07:00
|
|
|
# A bare machine, but with a jenkins user
|
2012-03-15 10:30:38 -07:00
|
|
|
node /^.*\.template\.openstack\.org$/ {
|
2012-03-28 10:31:51 -07:00
|
|
|
class { 'openstack_template':
|
|
|
|
iptables_public_tcp_ports => []
|
|
|
|
}
|
2012-05-21 17:53:36 +00:00
|
|
|
class { 'jenkins_slave':
|
|
|
|
ssh_key => $jenkins_ssh_key,
|
|
|
|
sudo => true,
|
|
|
|
bare => true
|
|
|
|
}
|
2011-11-16 08:36:14 -08:00
|
|
|
}
|
|
|
|
|
2011-08-02 12:58:08 -07:00
|
|
|
#
|
|
|
|
# Jenkins slaves:
|
|
|
|
#
|
2012-06-07 11:00:44 -07:00
|
|
|
node /^.*\.slave\.openstack\.org$/ {
|
2012-04-24 11:29:36 -07:00
|
|
|
include openstack_cron
|
2012-01-23 15:16:06 -08:00
|
|
|
include openstack_jenkins_slave
|
|
|
|
|
|
|
|
package { "tox":
|
2012-06-05 22:59:46 +00:00
|
|
|
ensure => latest, # okay to use latest for pip
|
2012-01-23 15:16:06 -08:00
|
|
|
provider => pip,
|
|
|
|
require => Package[python-pip],
|
|
|
|
}
|
|
|
|
}
|
2012-03-25 12:44:52 -07:00
|
|
|
|
2012-05-28 10:41:13 -04:00
|
|
|
# bare-bones slaves spun up by jclouds. Specifically need to not set ssh
|
|
|
|
# login limits, because it screws up jclouds provisioning
|
|
|
|
node /^.*\.jclouds\.openstack\.org$/ {
|
|
|
|
|
|
|
|
include openstack_base
|
|
|
|
|
|
|
|
class { 'jenkins_slave':
|
|
|
|
ssh_key => "",
|
|
|
|
user => false
|
|
|
|
}
|
|
|
|
}
|