Fixes #23857 - Fix Performance/InefficientHashSearch cop
Fixes #23843 - Exclude requests to local host from proxying
Fixes #23142,#23503 - telemetry improvements
Fixes #21997 - make http_proxy extension excon >0.59 compatible (#5526)
excon 0.60 defines it's own "logger", which conflicts here.
fixes #23621 - passwords can be md5 hashed
Fixes #19781 - Fix Layout/LeadingCommentSpace cop
Fixes #23254 - Utilize webmock to prevent network connection
in tests
Fixes #19787 - Fix Layout/SpaceAfterComma cop
Fixes #19848 - Set Style/Alias cop to prefer_alias_method
Fixes #19894 - Fix Style/RedundantParentheses cop
Fixes #19909 - Fix Style/TrivialAccessors cop
Fixes #23077 - Fix Style/TrailingCommaInArrayLiteral cop
Fixes #15634 - RancherOS support
New OS support.
Fixes #19895 - Fix Style/RedundantReturn cop
Fixes #22888 - remove code around dynflow db_pool_size
Remove the code in favor of the Dynfow, where we can handle all thelogic at one place.
Fixes #22764 - gc stat metric works on rails reload
Fixes #22493 - structured logging support
Fixes #22806 - rails now boot without telementry deps
Fixes #17316 - templates feature is subnet association
Refs #18675 - Optionally load prometheus exporter
In case the bundler group telemetry is not installed, we should handlethat.
This moves the middleware loading to better match the other middleware.
Fixes #18675 - telemetry foreman API
Fixes #21204 - introduced global_setting helper function (#4891)
Refs #22354 - Don't instance_eval at every instance creation
Before this patch, we were defining the methods at every instancecreation. This means potential performance issues, as defining newmethods causes the method lookup cache to get dropped.
I needed to move the time for loading the silencer a bit later so that...
Fixes #22354 - Make SilencedLogger thread safe
Fixes #20931 - unify parameters and templates renderer (#4835)
Before this patch, we used separate renderer for the parameters. Thiscaused issues when introducing more dsl methods for the templates that...
Fixes #21851 - Remove deprecations for 1.17
Fixes #19772, #19773, #19774 - Fix some empty line cops
Fixes #18422 - Expose dynflow worker pool size in config
Fixes #21269 - fixed dns_lookup with address resolution
Fixes #20559 - print rails log for test failures
Fixes #20201 - Global HTTP proxy for outgoing requests
This introduce two new settings to proxy outgoing HTTPrequests and one to except certain hosts from it.
The extensions for Excon::Connection and Net::HTTPallow setting a proxy on their requests.
Refs #16740 - migration templates to use param macros
Fixes #13599 - Wrapped exception truncate moved to client
Removed message truncation from server side, and moved it to clientside - the message is truncated with ellipsis. On mouse over fullmessage is presented as popover.
This commit required a small change to `data-ajax-url` handler in client...
Fixes #17811 - Improve error message LDAP fail
Fixes #18618 - Use Dynflow as an ActiveJob backend
This commit initializes the Dynflow world in a very similar manner toforeman-tasks (if a Dynflow world is available from foreman-tasks, weuse that one).
fixes #18500 - replace quiet_assets with sprockets-rails flag
The app.assets environment is no longer always configured, and insteadis only configured when the regular Rails environment is loaded. Loadingonly the 'assets' group initializers isn't sufficient....
fixes #19977 - Fetch a value for a given subnet parameter name
This code will add a function to lookup a subnet parameter by name,and returns it's value. It will return `nil` if no value was found.
The function is added to the renderer, so it can be called from...
Fixes #19700 - update rubocop rules
The following changes have been made:
- Performance/RedundantMerge:changes lines such as:```not_found_message.merge! :message => options```to:```not_found_message[:message] = options```
- converts str.match() to str =~ ()...
Fixes #13772 - orchestration now uses app logger
Fixes #19213 - use provision interface in foreman_url
Before this patch, we were using primary interface for checking on ftfpproxy and its template feature. Provision interface is more appropriatefor this purposes.
fixes #18719 - replace usage of deprecated Fixnum constant
Most type checks for Fixnum can safely be replaced by Integer, as priorto Ruby 2.4, Fixnum was a subclass of Integer and so the conditionalholds.
Fixes #18977 - Do not raise on creating a role in plugin when in Rake
Fixes #18345 - Improve templates error handling
fixes #18735 - truncate encryption key to match preferred length (#4350)
Ruby 2.4's OpenSSL bindings raise an ArgumentError during encryption ifthe key length exceeds the cipher's configured length (32 bytes with thedefault cipher), but the verification hash algorithm still uses the full...
Fixes #18581 - conditionalize SUSE mediapath
Fixes #18227 - clean up variables after rendering
Fixes #18205 - Add save_to_file macro
Refs #18143 - extend snippet_if_exists too
Fixes #18143 - enable variables for snippets (#4205)
Fixes #16740 - Access host params through macro
fixes #8290 - remove foreman_url redundancy
Fixes #17561 - Allow Dynamic keyword in autoyast files
Fixes #16218 - override settings per environment
Fixes #16813 - improve error messages for associations
Fixes #16806 - include renderer url dependencies
Fixes #16649 - PXE helper pxe_kernel_options rendering
Fixes #16491 - Upgrade rubocop to version 0.42
fixes #15248 - remove 1.14 deprecations
Fixes #16318 - PXE templates now work in safemode (#3783)
pxe_kernel_options added to safemode
Fixes #16057 - added dns_lookup template helper
Fixes #12634 - New HW Model flag pxe_loader
Implementation of
https://github.com/theforeman/rfcs/blob/master/text/0001-PXE-Booting-UEFI.md
In short, new host/hostgroup flag PXE loader is added to specify TFTPDHCP filename and Foreman now orchestrates all PXE-capable templates...
fixes #15751 - replace spork with spring in development
To make use of it, run bin/rails and bin/rake rather than plainrails or rake commands, and run `spring status` or `spring stop` tocheck and stop current background processes.
Test log removal has moved to the logging framework as the file would...
Refs #3809 - Turning on the AndOr cop
Refs #3809 - Turning on some Lint cops
Fixes #14410 - respond 503 when pending migration
Fixes #6539 - missing templates error is now descriptive
Refs #3809 - Turning on some rubocop cops
fixes #14820 - override Rails log level with Foreman::Logging config
The log_level is expected to be explicitly configured in the Railsconfig in the production environment.
fixes #14741 - translate template kind string, not object
Also convert translation keys to strings in debug mode to preventconcatenation errors.
Fixes #12318 - support preview for deb-based distros
Fixes #14479 - removed unwanted check for token param
fixes #9782 - implement mediapath for suse/yast
fixes #12962 - Add Xenserver to list of supported OS families.
Templates are included in community-templates repo.
Fixes #14232 - make generic helpers available for global PXE template
Refs #12911 - Fixing colon method calls
fixes #13039 - remove TemplateKind DB calls from UnattendedCtlr
UnattendedController created actions/methods during initialisation perknown TemplateKind, relying on the DB being populated. This causedordering issues when a plugin loaded the controller in a test...
fixes #12893 - ensure constants are set only once
the root cause is probably the same file is loaded multiple times.
Fixes #7230, #12021 - Upgrade to Rails 4.1.5
This commits upgrades Rails to Rails 4.1.5. See a description of thechanges included here, and go to the pull request in GitHub to see moredetailed explanations:
Fixes #11643 - [API] Add preview template to host
Fixes #10988 - Remove 1.11 deprecations
fixes #11723 - foreman_url usable from default PXE template
Fixes #1453 - add use_image and jumpstart helpers to Host jail
Fixes #11035 - template preview feature
Fixes #10713 - improved backtrace logging
Fixes #7096 - Adds STI to templates
This commit converts Ptables to be just another type of Template so itgets the same features as ConfigTemplate. ConfigTemplate was renamed toProvisioningTemplate to reflect UI and the name under it's commonly known.
Fixes #10487: Add custom logging support
This change moves away from the Rails logger to the 'logging' gemto support more configurability of logging. Further, this allows forthe creation of custom loggers that plugins can then create duringregistration (with `logger`) or through settings....
Fixes #10402: add to_bool function for converting to boolean.
This commit adds a to_bool function for casting values to booleanas well as an example usage.
http://projects.theforeman.org/issues/10402
fixes #10287 - provide helper methods for proxy features
Refs #3809 - Remove cop IndentationConsistency
Refs #3809 - Remove cops for empty lines
Fixes #7456 - Extract primary interface from host
All host must have at least one primary interface and one provision (can...
Fixes #9099 - Upgrade rubocop to 0.28.0
Refs #3809 - Enable cop BarePercentLiterals
Fixes #8267 - accept template_url in call to foreman from proxy
Refs #969 - Foreman-side changes for serving templates from the proxy
Refs #3809 - Use parentheses in method definitions
Refs #3809 - Fix a few rubocop TODOs
Refs #3809 - Remove rubocop TODOs
Removed the following TODOs so that cops for these will run from now on:
Lint/AmbiguousOperator, DefEndAlignment, DeprecatedClassMethodsEnsureReturn, RequireParentheses, Void, BlockAlignment, EndAlignment,UselessAccessModifier,...
fixes #4672 - added template_name template variable