From eadc70f3a4c186a4a730b5aaa4c8c104f12bad46 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 25 Aug 2015 14:37:15 -0400 Subject: [PATCH] scenario001: deploy Neutron Deploy Neutron service and resources (rabbitmq user, mysql database, keystone resources). It will deploy: * Neutron Server using ML2 / OVS plugin * Neutron Agent using ML2 / OVS agent * Neutron L3 & DHCP & Metering & Metadata & LBaaS agents Change-Id: Ic799386a27c711b6f26e50279704e67cad6faccd --- fixtures/scenario001.pp | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/fixtures/scenario001.pp b/fixtures/scenario001.pp index b291dfd7b..25e652b95 100644 --- a/fixtures/scenario001.pp +++ b/fixtures/scenario001.pp @@ -128,6 +128,71 @@ glance_image { 'cirros_alt': source => 'http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img', } +# Deploy Neutron +rabbitmq_user { 'neutron': + admin => true, + password => 'an_even_bigger_secret', + provider => 'rabbitmqctl', + require => Class['rabbitmq'], +} +rabbitmq_user_permissions { 'neutron@/': + configure_permission => '.*', + write_permission => '.*', + read_permission => '.*', + provider => 'rabbitmqctl', + require => Class['rabbitmq'], +} +class { '::neutron::db::mysql': + password => 'neutron', +} +class { '::neutron::keystone::auth': + password => 'a_big_secret', +} +class { '::neutron': + rabbit_user => 'neutron', + rabbit_password => 'an_even_bigger_secret', + rabbit_host => '127.0.0.1', + allow_overlapping_ips => true, + core_plugin => 'ml2', + service_plugins => ['router', 'metering'], + debug => true, + verbose => true, +} +class { '::neutron::client': } +class { '::neutron::server': + database_connection => 'mysql://neutron:neutron@127.0.0.1/neutron?charset=utf8', + auth_password => 'a_big_secret', + identity_uri => 'http://127.0.0.1:35357/', + sync_db => true, +} +class { '::neutron::plugins::ml2': + type_drivers => ['vxlan'], + tenant_network_types => ['vxlan'], + mechanism_drivers => ['openvswitch'], +} +class { '::neutron::agents::ml2::ovs': + enable_tunneling => true, + local_ip => '127.0.0.1', + tunnel_types => ['vxlan'], +} +class { '::neutron::agents::metadata': + debug => true, + auth_password => 'a_big_secret', + shared_secret => 'a_big_secret', +} +class { '::neutron::agents::lbaas': + debug => true, +} +class { '::neutron::agents::l3': + debug => true, +} +class { '::neutron::agents::dhcp': + debug => true, +} +class { '::neutron::agents::metering': + debug => true, +} + class { '::tempest': debug => true, use_stderr => false,