Install utility to deploy OpenStack on multiple hosts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2KB

  1. class packstack::aodh ()
  2. {
  3. create_resources(packstack::firewall, hiera('FIREWALL_AODH_RULES', {}))
  4. $config_aodh_coordination_backend = hiera('CONFIG_CEILOMETER_COORDINATION_BACKEND')
  5. if $config_aodh_coordination_backend == 'redis' {
  6. $redis_host = hiera('CONFIG_REDIS_HOST_URL')
  7. $redis_port = hiera('CONFIG_REDIS_PORT')
  8. $coordination_url = "redis://${redis_host}:${redis_port}"
  9. } else {
  10. $coordination_url = ''
  11. }
  12. class { '::aodh::keystone::authtoken':
  13. password => hiera('CONFIG_AODH_KS_PW'),
  14. auth_url => hiera('CONFIG_KEYSTONE_ADMIN_URL'),
  15. }
  16. class { '::aodh::api':
  17. enabled => true,
  18. service_name => 'httpd',
  19. sync_db => true,
  20. }
  21. class { '::aodh::wsgi::apache':
  22. workers => hiera('CONFIG_SERVICE_WORKERS'),
  23. ssl => false
  24. }
  25. class { '::aodh::auth':
  26. auth_password => hiera('CONFIG_AODH_KS_PW'),
  27. auth_url => hiera('CONFIG_KEYSTONE_PUBLIC_URL_VERSIONLESS'),
  28. }
  29. class { '::aodh::evaluator':
  30. coordination_url => $coordination_url,
  31. }
  32. class { '::aodh::notifier': }
  33. class { '::aodh::listener': }
  34. class { '::aodh::client': }
  35. }