Advertisement
Guest User

Untitled

a guest
Mar 5th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. class { 'nova':
  2. # set sql and rabbit to false so that the resources will be collected
  3. sql_connection => "mysql://nova:${password}@${dbserver}/nova",
  4. rabbit_host => "${amqpserver}",
  5. image_service => 'nova.image.glance.GlanceImageService',
  6. glance_api_servers => "${glance}",
  7. rabbit_userid => "nova",
  8. rabbit_password => "nova"
  9. }
  10.  
  11. class { 'nova::api':
  12. enabled => true,
  13. admin_password => "nova",
  14. auth_host => "${keystone}",
  15. }
  16.  
  17. class { 'nova::compute':
  18. enabled => true,
  19. }
  20.  
  21. class { 'nova::compute::quantum': }
  22.  
  23. class { 'nova::compute::libvirt':
  24. libvirt_type => 'kvm',
  25. }
  26. class { 'nova::network::quantum':
  27. quantum_admin_password => "quantum",
  28. quantum_auth_strategy => 'keystone',
  29. quantum_url => "http://${quantum}:9696",
  30. quantum_admin_tenant_name => 'services',
  31. quantum_admin_auth_url => "http://${keystone}:35357/v2.0",
  32. }
  33.  
  34. @@keystone_service { 'compute':
  35. ensure => present,
  36. type => "compute",
  37. description => "Nova Compute Service",
  38. tag => "${keystone}"
  39. }
  40.  
  41. @@keystone_endpoint { "RegionOne/compute":
  42. ensure => present,
  43. public_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
  44. admin_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
  45. internal_url => "http://${fqdn}:8774/v2/\$(tenant_id)s",
  46. tag => "${keystone}"
  47. }
  48.  
  49. @@database_user { "nova@${ipaddress}":
  50. password_hash => mysql_password("${password}"),
  51. tag => "${dbserver}",
  52. }
  53.  
  54. @@database_grant { "nova@${ipaddress}/nova":
  55. privileges => ['all'] ,
  56. tag => "${dbserver}"
  57. }
  58.  
  59. package { 'quantum-plugin-openvswitch-agent':
  60. name => 'quantum-plugin-openvswitch-agent',
  61. ensure => present,
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement