Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class { 'nova':
- # set sql and rabbit to false so that the resources will be collected
- sql_connection => "mysql://nova:${password}@${dbserver}/nova",
- rabbit_host => "${amqpserver}",
- image_service => 'nova.image.glance.GlanceImageService',
- glance_api_servers => "${glance}",
- rabbit_userid => "nova",
- rabbit_password => "nova"
- }
- class { 'nova::api':
- enabled => true,
- admin_password => "nova",
- auth_host => "${keystone}",
- }
- class { 'nova::compute':
- enabled => true,
- }
- class { 'nova::compute::quantum': }
- class { 'nova::compute::libvirt':
- libvirt_type => 'kvm',
- }
- class { 'nova::network::quantum':
- quantum_admin_password => "quantum",
- quantum_auth_strategy => 'keystone',
- quantum_url => "http://${quantum}:9696",
- quantum_admin_tenant_name => 'services',
- quantum_admin_auth_url => "http://${keystone}:35357/v2.0",
- }
- @@keystone_service { 'compute':
- ensure => present,
- type => "compute",
- description => "Nova Compute Service",
- tag => "${keystone}"
- }
- @@keystone_endpoint { "RegionOne/compute":
- ensure => present,
- public_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
- admin_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
- internal_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
- tag => "${keystone}"
- }
- @@database_user { "nova@${ipaddress}":
- password_hash => mysql_password("${password}"),
- tag => "${dbserver}",
- }
- @@database_grant { "nova@${ipaddress}/nova":
- privileges => ['all'] ,
- tag => "${dbserver}"
- }
- package { 'quantum-plugin-openvswitch-agent':
- name => 'quantum-plugin-openvswitch-agent',
- ensure => present,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement