Pull o_p::server invocation out of afs roles

Spec: http://specs.openstack.org/openstack-infra/infra-specs/specs/server_base_template_refactor.html
Story: 2000172
Change-Id: Id680dfe2e7925f138d6c34ec838f30268946836f
This commit is contained in:
Spencer Krum 2015-04-07 13:55:42 -07:00
parent 056cb1ffc9
commit 485cae7749
3 changed files with 17 additions and 17 deletions

View File

@ -711,17 +711,27 @@ node 'kdc02.openstack.org' {
# Node-OS: trusty
node /^afsdb.*\.openstack\.org$/ {
$group = "afsdb"
class { 'openstack_project::afsdb':
sysadmins => hiera('sysadmins', []),
class { 'openstack_project::server':
iptables_public_udp_ports => [7000,7002,7003,7004,7005,7006,7007],
sysadmins => hiera('sysadmins', []),
afs => true,
}
include openstack_project::afsdb
}
# Node-OS: trusty
node /^afs.*\..*\.openstack\.org$/ {
$group = "afs"
class { 'openstack_project::afsfs':
sysadmins => hiera('sysadmins', []),
class { 'openstack_project::server':
iptables_public_udp_ports => [7000,7002,7003,7004,7005,7006,7007],
sysadmins => hiera('sysadmins', []),
afs => true,
}
include openstack_project::afsfs
}
# Node-OS: precise

View File

@ -1,13 +1,10 @@
# AFS DB Server
class openstack_project::afsdb (
$sysadmins = [],
) {
class { 'openstack_project::afsfs':
sysadmins => $sysadmins,
}
class { '::openstack_project::afsfs': }
class { 'openafs::dbserver':
class { '::openafs::dbserver':
require => Class['Openstack_project::Afsfs'],
}

View File

@ -1,16 +1,9 @@
# AFS Fileserver/BOS
class openstack_project::afsfs (
$cell = 'openstack.org',
$sysadmins = [],
) {
class { 'openstack_project::server':
iptables_public_udp_ports => [7000,7002,7003,7004,7005,7006,7007],
sysadmins => $sysadmins,
afs => true,
}
class { 'openafs::fileserver':
class { '::openafs::fileserver':
cell => $cell,
dbservers => [
{