cert.pp 808 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # == Class: nova::cert
  2. #
  3. # Installs nova cert package and service
  4. #
  5. # === Parameters:
  6. #
  7. # [*enabled*]
  8. # (optional) Whether or not to enable the nova cert 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 state to set for the nova-cert package
  17. # Defaults to 'present'
  18. #
  19. class nova::cert(
  20. $enabled = true,
  21. $manage_service = true,
  22. $ensure_package = 'present'
  23. ) {
  24. include ::nova::deps
  25. include ::nova::params
  26. nova::generic_service { 'cert':
  27. enabled => $enabled,
  28. manage_service => $manage_service,
  29. package_name => $::nova::params::cert_package_name,
  30. service_name => $::nova::params::cert_service_name,
  31. ensure_package => $ensure_package,
  32. }
  33. }