objectstore.pp 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # == Class: nova::objectstore
  2. #
  3. # Manages the nova-objectstore service
  4. #
  5. # === Parameters:
  6. #
  7. # [*enabled*]
  8. # (optional) Whether to enable the service
  9. # Defaults to true
  10. #
  11. # [*manage_service*]
  12. # (optional) Whether to start/stop the service
  13. # Defaults to true
  14. #
  15. # [*ensure_package*]
  16. # (optional) The package state to set
  17. # Defaults to 'present'
  18. #
  19. # [*bind_address*]
  20. # (optional) The address to bind to
  21. # Defaults to '0.0.0.0'
  22. #
  23. class nova::objectstore(
  24. $enabled = true,
  25. $manage_service = true,
  26. $ensure_package = 'present',
  27. $bind_address = '0.0.0.0'
  28. ) {
  29. include ::nova::deps
  30. include ::nova::params
  31. nova::generic_service { 'objectstore':
  32. enabled => $enabled,
  33. manage_service => $manage_service,
  34. package_name => $::nova::params::objectstore_package_name,
  35. service_name => $::nova::params::objectstore_service_name,
  36. ensure_package => $ensure_package,
  37. }
  38. nova_config {
  39. 'DEFAULT/s3_listen': value => $bind_address;
  40. }
  41. }