Skip to content

Instantly share code, notes, and snippets.

@blkperl
Last active December 20, 2015 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blkperl/6187900 to your computer and use it in GitHub Desktop.
Save blkperl/6187900 to your computer and use it in GitHub Desktop.
openstack::all
class cecs::role::openstack::all {
# 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::all':
public_address => $controller_node_public,
public_interface => $public_interface,
private_interface => $private_interface,
internal_address => $controller_node_internal,
floating_range => $floating_network_range,
fixed_range => $fixed_network_range,
# by default it does not enable multi-host mode
multi_host => true,
# by default is assumes flat dhcp networking mode
network_manager => 'nova.network.manager.FlatDHCPManager',
verbose => $verbose,
auto_assign_floating_ip => $auto_assign_floating_ip,
mysql_root_password => hiera('openstack_mysql_root_password'),
admin_email => $admin_email,
admin_password => hiera('openstack_admin_password'),
keystone_db_password => hiera('keystone_db_password'),
keystone_admin_token => hiera('keystone_admin_token'),
cinder_db_password => hiera('cinder_db_password'),
cinder_user_password => hiera('cinder_user_password'),
glance_db_password => hiera('glance_db_password'),
glance_user_password => hiera('glance_user_password'),
quantum => false,
nova_db_password => hiera('nova_db_password'),
nova_user_password => hiera('nova_user_password'),
rabbit_password => hiera('openstack_rabbit_password'),
rabbit_user => hiera('openstack_rabbit_user'),
secret_key => hiera('openstack_secret_key'),
libvirt_type => 'kvm',
vncproxy_host => $::fqdn,
swift_user_password => hiera('swift_user_password'),
}
class { '::openstack::auth_file':
admin_password => hiera('openstack_admin_password'),
keystone_admin_token => hiera('keystone_admin_token'),
controller_node => $controller_node_internal,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment