#Configuretheopenvswitchservice
#
#[*manage_bridge*]
#(Optional)Setupbr-exbridge.
#Defaultstotrue.
classopenstack_integration::ovs(
$manage_bridge=true
){
includevswitch::ovs
if$manage_bridge{
#FunctionaltestforOpen-vSwitch:
#createdummyloopbackinterfacetoexerciseaddingaporttoabridge
vs_bridge{'br-ex':
ensure=>present,
notify=>Exec['create_loop1_port'],
}
exec{'create_loop1_port':
path=>'/usr/bin:/bin:/usr/sbin:/sbin',
provider=>shell,
command=>'ip link add name loop1 type dummy && ip addr add 127.2.0.1/24 dev loop1',
refreshonly=>true,
->vs_port{'loop1':
bridge=>'br-ex',
notify=>Exec['create_br-ex_vif'],
#createsbr-exvirtualinterfacetoreachfloating-ipnetwork
exec{'create_br-ex_vif':
command=>'ip addr add 172.24.5.1/24 dev br-ex && ip link set br-ex up',
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル