adjust params

This commit is contained in:
Dan Bode
2012-10-29 18:48:56 -07:00
parent 11a2d0ed7b
commit a76d39ebf2

View File

@@ -18,7 +18,7 @@ $nova_db_password = 'nova_db_password'
$cinder_db_password = 'cinder_db_password' $cinder_db_password = 'cinder_db_password'
$quantum_db_password = 'quantum_db_password' $quantum_db_password = 'quantum_db_password'
$allowed_hosts = ['keystone', 'glance', 'novacontroller', 'compute1', '%'] $allowed_hosts = ['%']
# keystone settings # keystone settings
$admin_token = 'service_token' $admin_token = 'service_token'
@@ -31,23 +31,30 @@ $quantum_user_password = 'quantum_user_password'
$verbose = 'True' $verbose = 'True'
$public_interface = 'eth1' $public_interface = 'eth1'
$private_interface = 'eth2' $private_interface = 'eth2'
$rabbit_password = 'rabbit_password' $rabbit_password = 'rabbit_password'
$rabbit_user = 'nova' $rabbit_user = 'nova'
$secret_key = 'secret_key' $secret_key = 'secret_key'
$libvirt_type = 'qemu' $libvirt_type = 'qemu'
#$libvirt_type = 'kvm'
$network_type = 'quantum'
#$network_type = 'nova'
if $network_type == 'nova' {
$use_quantum = false
} else {
$use_quamtum = true
}
$fixed_network_range = '10.0.0.0/24'
$floating_network_range = '172.16.0.128/25'
$auto_assign_floating_ip = false
#### end shared variables ################# #### end shared variables #################
#### controller/compute mode settings ####
$mysql_host = '172.16.0.8'
$keystone_host = '172.16.0.7'
$glance_host = '172.16.0.6'
$nova_host = '172.16.0.5'
#### controller/compute mode settings #### #### controller/compute mode settings ####
$openstack_controller = '172.16.0.3' $openstack_controller = '172.16.0.3'
#### controller/compute mode settings #### #### controller/compute mode settings ####
@@ -60,10 +67,6 @@ import 'scenarios/multi_role.pp'
node /openstack-controller/ { node /openstack-controller/ {
# deploy a script that can be used to test nova # deploy a script that can be used to test nova
class { 'openstack::test_file': }
# class { 'nova::volume': enabled => true }
# class { 'nova::volume::iscsi': }
class { 'openstack::test_file': class { 'openstack::test_file':
quantum => $use_quantum, quantum => $use_quantum,
} }
@@ -144,19 +147,19 @@ node /openstack-controller/ {
node /compute/ { node /compute/ {
# TODO not sure why this is required # TODO not sure why this is required
Package['libvirt'] -> # this has a bug, and is constantly added to the file
file_line { 'quemu_hack': if $libvirt_type == 'qemu' {
line => 'cgroup_device_acl = [ Package['libvirt'] ->
"/dev/null", "/dev/full", "/dev/zero", file_line { 'quemu_hack':
"/dev/random", "/dev/urandom", line => 'cgroup_device_acl = [
"/dev/ptmx", "/dev/kvm", "/dev/kqemu", "/dev/null", "/dev/full", "/dev/zero",
"/dev/rtc", "/dev/hpet", "/dev/net/tun",]', "/dev/random", "/dev/urandom",
path => '/etc/libvirt/qemu.conf', "/dev/ptmx", "/dev/kvm", "/dev/kqemu",
ensure => present, "/dev/rtc", "/dev/hpet", "/dev/net/tun",]',
} ~> Service['libvirt'] path => '/etc/libvirt/qemu.conf',
ensure => present,
# deploy a script that can be used to test nova } ~> Service['libvirt']
class { 'openstack::test_file': } }
# External lookups. # External lookups.
# $rabbit_connection_hash = collect_rabbit_connection('ipaddress_eth1', 'architecture=amd64') # $rabbit_connection_hash = collect_rabbit_connection('ipaddress_eth1', 'architecture=amd64')