consoleauth.pp 933 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # == Class: nova::consoleauth
  2. #
  3. # Installs and configures consoleauth service
  4. #
  5. # The consoleauth service is required for vncproxy auth
  6. # for Horizon
  7. #
  8. # === Parameters
  9. #
  10. # [*enabled*]
  11. # (optional) Whether the nova consoleauth service will be run
  12. # Defaults to true
  13. #
  14. # [*manage_service*]
  15. # (optional) Whether to start/stop the service
  16. # Defaults to true
  17. #
  18. # [*ensure_package*]
  19. # (optional) Whether the nova consoleauth package will be installed
  20. # Defaults to 'present'
  21. #
  22. class nova::consoleauth(
  23. $enabled = true,
  24. $manage_service = true,
  25. $ensure_package = 'present'
  26. ) {
  27. include ::nova::deps
  28. include ::nova::params
  29. nova::generic_service { 'consoleauth':
  30. enabled => $enabled,
  31. manage_service => $manage_service,
  32. package_name => $::nova::params::consoleauth_package_name,
  33. service_name => $::nova::params::consoleauth_service_name,
  34. ensure_package => $ensure_package,
  35. }
  36. }