Fixes #20945 - rubocop convention errors & warnings
Fixes #20898 - removed params from runtime_message in metadata.rb
Merge remote-tracking branch 'origin/master' into upgrade-workflow
Fixes #46 - isc dhcp configuration check
Add commands for executing procedures
Update from review
Support for run_once procedures and repositories setup
Configure repositories and update packages
Introduce run_strategy for scenarios
Health-check scenarios are better to run all steps regardless of errors(:fail_slow strategy), while the migration scenarios should fail as soonas first failure happens (:fail_fast strategy).
By default, the scenarios are treated as `:fail_fast`.
Full upgrade scenario
This commit intoroduces more structured upgrade scenario consisting ofthis scenarios:
Define order using ruby TSort
1. Introduce 2 metadata: 'before' and 'after'2. Current order is:Checks::SyncPlans::WithEnabledStatusChecks::DiskSpeedMinimalChecks::SystemRegistrationChecks::ForemanTasks::NotPausedChecks::ForemanTasks::NotRunningChecks::ForemanTasks::Invalid::CheckOld...
Assumeyes option
Hammer setup preparation step
Support running commands interactively
Introduce required params
Install required packages as the first one
RFE #23 - Add new status [WARNING] - Check: is system self registered
Add tests for tasks paused check and additional procedures
Namespace checks and procedures
Let's organize the stuff a bit better
Turn hammer feature into a utils class
After looking more into this, I think the util class is actually betterfit for the hammer case. I've also removed the detection of thecredentials from hammer configuration, as we actually don't needthe credentials by our own.
Shellescaping and password filtering support in system helper
Support code for allowing filering out sensitive data from logs+ properly escaping user-specified variables (such as password)
Fixes #5 - enhanced logger feature
1. Deleted existing lib/foreman_maintain/logger.rb files2. Now, logs are stored into file under foreman-maintain/log directory in debug mode3. Number of log files set to 10 i.ewhen, there would be 11 files remaining, the oldest one will be deleted...
Run confine against classes, not objects
This allows us to have multiple objects of the same procedure in thesystem, differing in the constructor parameters. Useful for parametrizedprocedures.
Extract metadata DSL to separate namespace
Having the DSL methods directly on the classes caused issues whenneeding to query the metadata later.
Fixes #1 - IO operations on disk and file system
1) Removed feature DiskIO(Check is sufficent)2) rename Concerns::DiskUtility to Utils::Disk3) Move disk_utlity_concerns logic to Check itself4) confine hdparm and fio5) Error log message - verbore and descriptive...
Add travis
Add scaffold for definitions tests
CLI basic structure
Update real definitions based on latest changes in lib
Refactor: make autodetect opt-out
Ability to define precedures
Unify finder and detector
The detector now can do both detection and filtering
Refactor
Rename feature_name to more generic label
Tests for runner and reporter
WIP: check scenarios
Ability to define and filter checks