Feature #364
closedEnable "downtime" in Foreman
Description
Enable a per-host "downtime" that would suppress the sending of error mails. Perhaps hosts in downtime could appear as a separate category in the regular Foreman report that's sent out.
This would allow users to perform maintenance on active Puppet machines without sending out a torrent of false alarms.
Files
Updated by Eric Shamow over 14 years ago
Created db migration to generate the field:
class AddEnabledToHosts < ActiveRecord::Migration
def self.up
add_column :hosts, :enabled, :boolean, :default => 1
end
def self.down
remove_column :hosts, :enabled
end
end
Now working on report code to detect that enabled = false. Enabled = true results in message being sent through unchanged.
Updated by Eric Shamow over 14 years ago
- File enabledowntime.patch enabledowntime.patch added
- % Done changed from 0 to 50
Modified report_observer.rb to check flag status. Patch attached.
Updated by Eric Shamow over 14 years ago
DB migration file attached
Updated by Eric Shamow over 14 years ago
- File displaydowntime.patch displaydowntime.patch added
Added a line to display enabled/disabled status on host page
Updated by Ohad Levy over 14 years ago
looks good, a few comments:
- consider using git, it makes this patching stuff much easier :)
- I would think that hosts that are disabled, should not appear in the dashboard - do you agree?
- it should be possible to toggle a host (enable / disable) - maybe a minor change in the host edit
- maybe it should also be considered to enable / disable multiple hosts at the same time (can be a separate feature request)
- filter hosts based on status (e.g. show all hosts which are disabled?)
Updated by Ohad Levy about 14 years ago
- Category set to Reporting
- Assignee set to Eric Shamow
- Target version set to 0.1-6
Updated by Anonymous about 14 years ago
- Status changed from New to Ready For Testing
- % Done changed from 50 to 100
Applied in changeset 5aee72686d733c9be2c75c064a73dc840f2753db.
Updated by Ohad Levy about 14 years ago
- Status changed from Ready For Testing to Closed