Project

General

Profile

« Previous | Next » 

Revision e54016da

Added by Marek Hulán over 8 years ago

Fixes #10782 - global host status

Introduce new global host status that is composed of host substatuses.
Each substatus defines a mapping to the global one which can result in
three values
  • OK
  • WARN
  • ERROR

Plugins can add their own substatuses. These are automatically
propagated also to API.

Thanks to Tomas Strachota who wrote the original code.

View differences:

app/services/foreman/access_permissions.rb
:dashboard => [:OutOfSync, :errors, :active],
:unattended => [:template, :provision],
:"api/v1/hosts" => [:index, :show, :status],
:"api/v2/hosts" => [:index, :show, :status, :vm_compute_attributes],
:"api/v2/hosts" => [:index, :show, :status, :get_status, :vm_compute_attributes],
:"api/v2/interfaces" => [:index, :show],
:locations => [:mismatches],
:organizations => [:mismatches]

Also available in: Unified diff