Skip to content

Instantly share code, notes, and snippets.

@blkperl
Created August 13, 2013 06:57
Show Gist options
  • Save blkperl/6218517 to your computer and use it in GitHub Desktop.
Save blkperl/6218517 to your computer and use it in GitHub Desktop.
class cecs::role::openstack::compute {
# assumes that eth0 is the public interface
$public_interface = 'eth0'
# assumes that eth1 is the interface that will be used for the vm network
# this configuration assumes this interface is active but does not have an
# ip address allocated to it.
$private_interface = 'br100'
$floating_network_range = '192.168.101.64/28'
$fixed_network_range = '10.208.13.0/24'
$admin_email = 'root@cat.pdx.edu'
# multinode stuff
$controller_node_address = '131.252.208.124'
$controller_node_public = $controller_node_address
$controller_node_internal = $controller_node_address
class { '::openstack::compute':
db_host => $controller_node_address,
public_interface => $public_interface,
private_interface => $private_interface,
internal_address => $ipaddress_eth0,
libvirt_type => 'qemu',
fixed_range => $fixed_network_range,
network_manager => 'nova.network.manager.FlatDHCPManager',
multi_host => true,
quantum => false,
cinder_db_password => hiera('cinder_db_password'),
nova_db_password => hiera('nova_db_password'),
nova_user_password => hiera('nova_user_password'),
rabbit_host => $controller_node_internal,
rabbit_password => hiera('openstack_rabbit_password'),
rabbit_user => hiera('openstack_rabbit_user'),
glance_api_servers => "${controller_node_internal}:9292",
vncproxy_host => $controller_node_public,
vnc_enabled => true,
verbose => $verbose,
manage_volumes => true,
volume_group => 'cinder-volumes'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment