Fixes #21007 - new unattended action 'failed'
Fixes #23768 - keep_subnet flag to prevent subnet override (#5635)
Fixes #19789 - fix Layout/SpaceAroundOperators cop
Fixes #19775 - Fix Layout/ExtraSpacing cop
Fixes #23913 - Stop auditing host status updates
Fixes #23857 - Fix Performance/InefficientHashSearch cop
Fixes #23800 - i18n for exceptions fixed
Fixes #23646 - Remove storeconfig leftovers
In Foreman 1.1 sharing the database with Puppet's storeconfigs wasdeprecated. We've given users sufficient time to migrate away from itand possibly broke it along the way. I haven't checked.
Fixes #19781 - Fix Layout/LeadingCommentSpace cop
Fixes #23331 - grouped permissions for host disabled (#5468)
Fixes #15411 - Move smart_proxy_ids_for to Host
Fixes #19787 - Fix Layout/SpaceAfterComma cop
Fixes #23081 - Fix Style/SafeNavigation cop
Fixes #19894 - Fix Style/RedundantParentheses cop
Fixes #19796 - Fix Layout/SpaceInsidePercentLiteralDelimiters cop
Fixes #19840 - Fix Rails/ReadWriteAttribute cop
Fixes #19839 - Fix Rails/Present cop
Fixes #22331 - Fix Rails/Presence cop
Fixes #19832 - Fix Rails/FindBy cop
Fixes #22918 - Audit all taxonomies assignments
We need to move all audited definitions to top of models because allconcerns can use audit_associations call which relies on audit beingalready activated.
Fixes #22796 - fact importing telemetry
Fixes #22779 - Calculate out of sync host via origin interval (#5221)
Fixes #22104 - adapt to Rails 5.1 change tracking
Fixes #19907 - Configure Style/TernaryParentheses cop
Fixes #13092 - Deploy correct bonding for reprovisioned host (#4583)
Fixes #5790 - Add compute resource to hostgroup (#4593)
Fixes #21851 - Remove deprecations for 1.17
Fixes #21760 - Fix tests on Rails 5.1
fixes #21947 - host scopes include table name
Fixes #19772, #19773, #19774 - Fix some empty line cops
Fixes #21103 - Replace 'false' AR callback results with throw
Fixes #21565 - Orchestration on fact import
This adds the enable_orchestration_on_fact_import setting, which allowsa user to make Foreman perform host orchestration operations when ahost is updated from puppet fact upload
Fixes #19151 - progress_report_id fix for host edit
Fixes #21037 - use Host::Base as auditable_type
Otherwise, we are hitting "Invalid single-table inheritance type:Host::Discovered is not a subclass of Host::Managed" when converting thehost from discovered to managed.
Fixes #15409 - Separated puppet facts from core
Fixes #20957 - Replace alias_method_chain with Module prepend
Deprecated in Rails 5.0 and will be removed in 5.1. Some instances ofclasses overwriting existing methods can be handled with `super`, otherconcerns or modules are changed to use prepend instead of include....
Fixes #20955 - Remove conditions to {destroy, delete}_all calls
Fixes #20950 - Use 'distinct' in AR finders
Fixes #20956 - Don't pass class constants to AR conditions
fixes #20653 - ui notifications for hosts with usergroup owner
Fixes #20516 - GET hosts API displays owner_name attribute
Fixes #20622 - puppet import does not refresh all statuses
Fixes #20248, #20327 - Respect context in CSV export
Since CSV export is done using an enumerator which is executed by adifferent thread to the one that creates it, we need to manually pass inthe context (user, location, organization) to the enumerator.
Fixes #20401 - Allow pxe_loader in the Jail
Fixes #20119 - Be more descriptive when validating hostname
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
Fixes #19826 - Fix Rails/ActiveSupportAliases cop
Fixes #19828 - Fix Rails/Blank cop
I disabled the default UnlessPresent value since sometimes it's clearerto use `unless attribute.present?` instead of `if attribute.blank?`.
Fixes #15711 - Redesigned host info to providers.
Now you can add your own info by registering ahost method that will return info hash.
Fixes #18381 - PXE loader show inherited value in host/hostgroup
Fixes #13772 - orchestration now uses app logger
Fixes #16082 - Associate FactValues with Host::Base
To prevent regression in existing search functionality, this alsorequires that the hostgroup relation will be moved to the base class aswell. Since Host::Managed inherits from Host::Base, this should not...
fixes #17895 - do not import link-local ipv6 addr fact
fixes #19087 - create host built notification from Host#built
Comparing the host's installed_at timestamp is unreliable on MySQLdatabases, as the timestamp field has a limited granularity. Under Rails5 in a sub-second test, this field will not be changed....
Fixes #15374 - move progress_report_id to Host::Base
fixes #18476 - users have ssh keys
Fixes #18800 - strong params no longer breaks inherited attrs
fixes #18681 - moves polymorphic subject into notification object
also adds host build, destroyed and missing owner UI notifications
Fixes #14013 - add a setting for default owner of new hosts
Fixes #16982 - Scope properly when no taxonomies are set
The default scope for hosts and other objects did not restrictproperly by taxonomies. An user without organizations orlocations, could do anything it's permissions allow to.The list of hosts was unrestricted and showed hosts in...
fixes #17533 - provision dhcp for bond child macs
fixes #18102 - a host cannot be backed by the same vm
fixes #18208 - replace audited-activerecord with audited (#4218)
Fixes #16752 - Extract template code from Host::Managed
Host::Managed contains a lot of code related with determining thetemplate that a host should have. Other Host objects such asHost::Discovered might need that logic, without becoming aHost::Managed....
Fixes #6952 - Set hostgroup after provisioning from pxe
After hostgroup provisioning, when the machine has registeredwith foreman, it should be in the same hostgroup.to achieve this behavier, the fact foreman_hostgroup should beadded to hostgroup provisioning template
Fixes #17680 - templates_used host helper
templates_used contains the names of all of the provisioning templateskickstart used during a host build. This allows users to be able toshow the name of a provisioning template during PXEBoot, for example
Fixes #16740 - Access host params through macro
Fixes #17886 - move config groups under parameters
fixes #17853 - resolve ips in interface scope
fixes #16792 - don't modify AR record attributes in-place
Rails 5 may call #freeze on strings passed in as an attribute duringvalidation, so attributes must not be edited in-place with gsub! andsimilar methods.
Fixes #17257 - Allow specific configs to be recreated
fixes #15610 - choose firmware for vsphere vms
Fixes #6006 - Add options to disable updates from facts
Add option ignore_facts_for_operatingsystem: do not update system's operating system based on facts Add option ignore_facts_for_domain: do not update system's domain based on facts
fixes #17095 - ensure subnet belongs to ip from facts
Fixes #16987 - Added ability to apply facet attributes
Fixes #17343 - set deep munge config off
deep_munge was introduced as a solution to keepRails secure by default which results in'empty array becomes nil in params'.Thats why, set deep_munge config off in application.rb.Also, added changes which will cast param argument to string...
Fixes #17006 - added SSH BMC provider
Fixes #16546 - update facts on existing hosts
when create_new_host_when_facts_are_uploaded is set to false
fixes #17071 - set ip after acquiring compute details
Fixes #17103 - search ignored taxonomies
When searching for ProvisioningTemplate we should respect also hosttaxonomies ignore list.
fixes #16866 - don't call orchestration skip if unattended is off
fixes #17041 - skips orchestration when importing facts
The orchestration callbacks only run if unless :skip_orchestration?,however skip_orchestration? is not a method for Nic::Managed causing thecallbacks to always run, even if importing facts.
Fixes #6492 - ipmi_boot permission renamed to ipmi_boot_hosts
Authorizer expects permission names to follow a convention'action'_'controller'. However this permission was not following it, andthis prevented the permission from being applied properly.
Before this fix, only admins could call ipmi_boot. I've also added a...
Fixes #12864 - verify host owner taxonomies
fixes #16749 - improve NIC update performance during fact imports
- In get_facts_for_interface, replace regexes in hash key filtering with simple String methods and simplify hash construction- Change logger.debug to lazy evaluation for production performance,...
fixes #16547 - handle nil value from get_interface_scope
Since 7b75a6a, get_interface_scope may return no scope for managed hostswhen importing a physical interface not already known by MAC address.
Fixes #12535 - expose config_groups in ENC
Fixes #16532 - fixed hostgroup architecture params
fixes #16545 - correctly search for classes from YAML import
Prevents a full class hash of name => parameters being passed to the ARfinder when using a parameterized (hash-style) YAML format.
Fixes #16125 - add owner type validation
Fixes #16424 - extracted create_new_host_when_facts_are_uploaded
Fixes #16449 - reordered taxonomy detection during import
fixes #15590 - ipv6 tftp orchestration
Fixes #14771 - Show corresponding os list for arch
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 #16243 - make Host::Managed.new's options arg optional
The options argument no longer exists on Rails 5 as it was part of thesupport for protected_attrs. The argument list to .new should be handledmore defensively, like Host::Base.
Fixes #16197 - Host#smart_proxies returns only the host proxies
Doing the following:- Create 2 smart proxies, one for dhcp/dns/tft/puppetca/puppet, anotherfor realms. Let's keep the realms proxy off, so it's unreachable.- Create a hostgroup A that sets domain, subnet, realm, puppet_proxy,...
fixes #16199 - always run build related callbacks
Fixes #16061 - auto ip assignment for non-primary interfaces
Squashed commit with a test case and the changes Timo suggested thanksfor the help also tried to decrease complexity of my change.
Fixes #16073 - match up nic identifiers for unmanaged hosts
fixes #15787 - update shoulda-matchers to 3.x
Contains changes to models for the new behaviour of the uniquenessvalidation test, which saves a model with one value and then attemptsto validate a second.
NestedAncestryCommon's validation now doesn't fail when the specified...