Files
bb26118ae1655c3ed5c11cba60cd24527a8c8144
puppet-openstack-integration /fixtures /scenario004.pp

121 lines
3.6 KiB
ObjectPascal
Raw Normal View History

#Copyright2016RedHat,Inc.
#
#LicensedundertheApacheLicense,Version2.0(the"License");
#youmaynotusethisfileexceptincompliancewiththeLicense.
#YoumayobtainacopyoftheLicenseat
#
#http://www.apache.org/licenses/LICENSE-2.0
#
#Unlessrequiredbyapplicablelaworagreedtoinwriting,software
#distributedundertheLicenseisdistributedonan"AS IS"BASIS,
#WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.
#SeetheLicenseforthespecificlanguagegoverningpermissionsand
#limitationsundertheLicense.
#
if($::os['family']=='Debian'){
$wsgi_mod_lib='mod_wsgi.so'
}
elsif($::os['name']=='Fedora')or
($::os['family']=='RedHat'andInteger.new($::os['release']['major'])>7){
$wsgi_mod_package='python3-mod_wsgi'
$wsgi_mod_lib='mod_wsgi_python3.so'
}
class{'apache':
}),
mod_libs=>merge($::apache::params::mod_libs,{
'wsgi'=>$wsgi_mod_lib,
}
}
#FIXME(ykarel)DisableSSLuntilservicesarereadytoworkwithSSL+Python3
$ssl=false
}else{
$ssl=true
}
if($::os['family']=='RedHat'andInteger.new($::os['release']['major'])>7){
$backend=undef
$ceph=false
}else{
$backend='swift'
$ceph=true
}
#FIXME(ykarel)Disablebgp_dragentuntilUbuntupython3stein(withsteinpackages)jobsareready
$bgp_dragent_enabled=false
$watcher_enabled=true
$bgpvpn_enabled=true
$l2gw_enabled=true
$bgp_dragent_enabled=true
class{'openstack_integration::config':
includeopenstack_integration::rabbitmq
includeopenstack_integration::mysql
includeopenstack_integration::keystone
class{'openstack_integration::glance':
l2gw_enabled=>$l2gw_enabled,
class{'openstack_integration::nova':
class{'openstack_integration::ceph':
deploy_rgw=>true,
swift_dropin=>true,
}
#Don't test swift, radosgw won'tpassthecurrenttests
#Glance,nova,neutronaretruebydefault.
bgpvpn=>$bgpvpn_enabled,