Merge "Allow ze01.o.o access to gearman / add to cacti.o.o"

This commit is contained in:
Jenkins 2017-06-07 17:20:36 +00:00 committed by Gerrit Code Review
commit f741500f92
2 changed files with 9 additions and 0 deletions

View File

@ -493,6 +493,7 @@ cacti_hosts:
- translate.openstack.org
- translate-dev.openstack.org
- wiki.openstack.org
- ze01.openstack.org
- zlstatic01.openstack.org
- zl01.openstack.org
- zl02.openstack.org

View File

@ -1107,6 +1107,7 @@ node /^ze\d+\.openstack\.org$/ {
# NOTE(pabelanger): We call ::zuul directly, so we can override all in one
# settings.
class { '::zuul':
gearman_server => 'zuulv3.openstack.org',
gerrit_server => $gerrit_server,
gerrit_user => $gerrit_user,
zuul_ssh_private_key => $zuul_ssh_private_key,
@ -1177,8 +1178,15 @@ node 'zuulv3.openstack.org' {
$git_name = 'OpenStack Zuul'
$revision = 'feature/zuulv3'
$gearman_workers = [
'ze01.openstack.org',
]
$iptables_rules = regsubst ($gearman_workers, '^(.*)$', '-m state --state NEW -m tcp -p tcp --dport 4730 -s \1 -j ACCEPT')
class { 'openstack_project::server':
iptables_public_tcp_ports => [80],
iptables_rules6 => $iptables_rules,
iptables_rules4 => $iptables_rules,
sysadmins => hiera('sysadmins', []),
}