diff --git a/manifests/site.pp b/manifests/site.pp index a7ad414681..8668d92119 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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 diff --git a/modules/openstack_project/manifests/afsdb.pp b/modules/openstack_project/manifests/afsdb.pp index 26c57eec1a..414bc95668 100644 --- a/modules/openstack_project/manifests/afsdb.pp +++ b/modules/openstack_project/manifests/afsdb.pp @@ -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'], } diff --git a/modules/openstack_project/manifests/afsfs.pp b/modules/openstack_project/manifests/afsfs.pp index f10b9f6d84..9bf14b4602 100644 --- a/modules/openstack_project/manifests/afsfs.pp +++ b/modules/openstack_project/manifests/afsfs.pp @@ -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 => [ {