summaryrefslogtreecommitdiffstats
path: root/puppet/opnfv/manifests/network.pp
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2015-01-26 15:40:43 -0500
committerDan Radez <dradez@redhat.com>2015-01-26 16:04:55 -0500
commit09247c2eca21891be5b04eda08a23d4a866a3b84 (patch)
treea1b0bdbc71867537779605ea91c6673ce6e5aba4 /puppet/opnfv/manifests/network.pp
parent557e59792133b3c1867170126f3e646018abc388 (diff)
adding puppet code for installation
Change-Id: I97fa75fdef058e64666dc73567cdce904d6ffc72 Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'puppet/opnfv/manifests/network.pp')
-rw-r--r--puppet/opnfv/manifests/network.pp50
1 files changed, 50 insertions, 0 deletions
diff --git a/puppet/opnfv/manifests/network.pp b/puppet/opnfv/manifests/network.pp
new file mode 100644
index 0000000..37cc75e
--- /dev/null
+++ b/puppet/opnfv/manifests/network.pp
@@ -0,0 +1,50 @@
+class opnfv::network {
+
+ if $private_ip == '' { fail('private_ip is empty') }
+ if $mysql_ip == '' { fail('mysql_ip is empty') }
+ if $amqp_ip == '' { fail('amqp_ip is empty') }
+ if $opendaylight_ip == '' { fail('opendaylight_ip is empty') }
+
+
+ if $nova_user_password == '' { fail('nova_user_password is empty') }
+ if $nova_db_password == '' { fail('nova_db_password is empty') }
+
+ if $neutron_user_password == '' { fail('neutron_user_password is empty') }
+ if $neutron_db_password == '' { fail('neutron_db_password is empty') }
+ if $neutron_metadata_shared_secret == '' { fail('neutron_metadata_shared_secret is empty') }
+
+ class { "opendaylight":
+ features => ['odl-base-all','odl-aaa-authn','odl-restconf',
+ 'odl-nsf-all','odl-adsal-northbound','odl-mdsal-apidocs',
+ 'odl-ovsdb-openstack','odl-ovsdb-northbound','odl-dlux-core'],
+ }
+
+
+ class { "quickstack::neutron::networker":
+ require => Class['opendaylight'],
+ neutron_metadata_proxy_secret => $neutron_metadata_shared_secret,
+ neutron_db_password => $neutron_db_password,
+ neutron_user_password => $neutron_user_password,
+ nova_db_password => $nova_db_password,
+ nova_user_password => $nova_user_password,
+
+ controller_priv_host => $private_ip,
+
+ agent_type => 'ovs',
+ enable_tunneling => true,
+ ovs_tunnel_iface => 'em1',
+ ovs_tunnel_network => '',
+ ovs_l2_population => 'True',
+ ovs_tunnel_types => ['vxlan'],
+ external_network_bridge => 'br-ex',
+ tenant_network_type => 'vxlan',
+ tunnel_id_ranges => '1:1000',
+ ml2_mechanism_drivers => ['opendaylight'],
+ odl_controller_ip => $opendaylight_ip,
+
+ mysql_host => $mysql_ip,
+ amqp_host => $amqp_ip,
+ amqp_username => 'guest',
+ amqp_password => 'guest',
+ }
+}