discover_hosts.pp 547 B

123456789101112131415161718192021222324
  1. # == Class: nova::cell_v2::discover_hosts
  2. #
  3. # Class to run the discover_hosts action for cell v2
  4. #
  5. # === Parameters
  6. #
  7. # [*extra_params*]
  8. # (String) Extra parameters to pass to the nova-manage commands.
  9. # Defaults to ''.
  10. #
  11. class nova::cell_v2::discover_hosts (
  12. $extra_params = '',
  13. ) {
  14. include ::nova::deps
  15. exec { 'nova-cell_v2-discover_hosts':
  16. path => ['/bin', '/usr/bin'],
  17. command => "nova-manage ${extra_params} cell_v2 discover_hosts",
  18. refreshonly => true,
  19. subscribe => Anchor['nova::service::end']
  20. }
  21. }