Created
March 29, 2015 21:01
-
-
Save trozet/1e34aada622cab65bbb1 to your computer and use it in GitHub Desktop.
compute HA params to go along with HA example shown in other gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class trystack::compute_ha { | |
if ($odl_flag != '') and str2bool($odl_flag) { | |
$ml2_mech_drivers = ['opendaylight'] | |
$this_agent = 'opendaylight' | |
} | |
else { | |
$ml2_mech_drivers = ['openvswitch','l2population'] | |
$this_agent = 'ovs' | |
} | |
if $ovs_tunnel_if == '' { fail('ovs_tunnel_if is empty') } | |
if $private_ip == '' { fail('private_ip is empty') } | |
if $odl_control_ip == '' { $odl_control_ip = $private_ip } | |
if $mysql_ip == '' { fail('mysql_ip is empty') } | |
if $amqp_ip == '' { fail('mysql_ip is empty') } | |
if $admin_password == '' { fail('admin_password 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('nova_user_password is empty') } | |
if $neutron_db_password == '' { fail('nova_db_password is empty') } | |
if $ceilometer_user_password == '' { fail('ceilometer_user_password is empty') } | |
if $ceilometer_metering_secret == '' { fail('ceilometer_user_password is empty') } | |
if $rbd_secret_uuid == '' { fail('rbd_secret_uuid is empty') } | |
class { "quickstack::neutron::compute": | |
auth_host => '10.4.9.71', | |
glance_host => '10.2.84.75', | |
libvirt_images_rbd_pool => 'volumes', | |
libvirt_images_rbd_ceph_conf => '/etc/ceph/ceph.conf', | |
libvirt_inject_password => 'false', | |
libvirt_inject_key => 'false', | |
libvirt_images_type => 'rbd', | |
nova_host => '10.2.84.77', | |
nova_db_password => $nova_db_password, | |
nova_user_password => $nova_user_password, | |
private_network => '', | |
private_iface => '', | |
private_ip => '10.4.8.52', | |
rbd_user => 'volumes', | |
rbd_secret_uuid => $rbd_secret_uuid, | |
network_device_mtu => $quickstack::params::network_device_mtu, | |
admin_password => $admin_password, | |
ssl => false, | |
mysql_host => '10.4.9.88', | |
mysql_ca => '/etc/ipa/ca.crt', | |
amqp_host => '10.4.9.81', | |
amqp_username => 'octopus', | |
amqp_password => 'octopus', | |
ceilometer => 'false', | |
ceilometer_metering_secret => $ceilometer_metering_secret, | |
ceilometer_user_password => $ceilometer_user_password, | |
cinder_backend_gluster => $quickstack::params::cinder_backend_gluster, | |
##trozet | |
cinder_backend_rbd => 'true', | |
glance_backend_rbd => 'true', | |
ceph_cluster_network => '10.4.8.0/21', | |
ceph_fsid => '904c8491-5c16-4dae-9cc3-6ce633a7f4cc', | |
ceph_images_key => 'AQAfHBdUKLnUFxAAtO7WPKQZ8QfEoGqH0CLd7A==', | |
ceph_mon_host => ["10.4.9.2","10.4.9.4","10.4.8.51"], | |
ceph_mon_initial_members => ["oscontroller1","oscompute11","tempest1"], | |
ceph_osd_pool_default_size => '1', | |
ceph_osd_journal_size => '1000', | |
ceph_volumes_key => 'AQAfHBdUsFPTHhAAfqVqPq31FFCvyyO7oaOQXw==', | |
agent_type => $this_agent, | |
enable_tunneling => true, | |
ml2_mechanism_drivers => $ml2_mech_drivers, | |
odl_controller_ip => $odl_control_ip, | |
neutron_db_password => $neutron_db_password, | |
neutron_user_password => $neutron_user_password, | |
neutron_host => '10.4.9.76', | |
#ovs_bridge_mappings = $quickstack::params::ovs_bridge_mappings, | |
#ovs_bridge_uplinks = $quickstack::params::ovs_bridge_uplinks, | |
#ovs_vlan_ranges = $quickstack::params::ovs_vlan_ranges, | |
ovs_tunnel_iface => $ovs_tunnel_if, | |
ovs_tunnel_network => '', | |
ovs_l2_population => 'false', | |
tenant_network_type => 'vxlan', | |
tunnel_id_ranges => '1:1000', | |
#ovs_vxlan_udp_port = $quickstack::params::ovs_vxlan_udp_port, | |
ovs_tunnel_types => ['vxlan'], | |
verbose => 'true', | |
security_group_api => 'neutron', | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment