fixes #11095 - lookup keys do not get saved to db on setter invokation
(cherry picked from commit c6b4236846decc58583143f30d537a27b4848953)
Fixes #11187 - explicitly pass resource_type and permission to check
Fixes #11035 - template preview feature
(cherry picked from commit de9e7adaa579db01d043d6a04a83c946a3d33850)
Fixes #10915 - Deleting a host removes all host specific overrides
(cherry picked from commit 674755f43684f76e6b23ca499a57153aad3db5e2)
Fixes #10867 - OpenStack boot_from_volume is true only when checked
(cherry picked from commit 776cff93637b006cb69063fecf142e776acd1378)
Fixes #10928 - Default dashboard widgets for new users
(cherry picked from commit ad00a1094bce4dd7e33ed1c06eaf4b7b9902d150)
Fixes #10635 - Formalize deprecation warning
(cherry picked from commit 319d1ffbed54f2c9eb988d132ec1586fb4d7c428)
fixes #10868 - use classify for a Symbol instead of humanize
(cherry picked from commit 707d9bdda6bb95cdaf6f77281ee5a16e2b5bc555)
Fixes #10607 - match bonds based on identifier only
(cherry picked from commit 7be20b248502eb8682008e1c6b03fef71da4f73d)
Fixes #10888 - skip attached_to updates if identifier was blank
(cherry picked from commit db6d6b8b7d0d2e90e27d4c23308e5db26abd3820)
Fixes #10727 - Added validation to require BMC Smart proxy in order to add BMC nic
Fixes #10633 - Associate architechture to OS during fact import
Fixes #10526 - Support for Cisco POAP
fixes #10829 - non-admin user cannot update admin password
fixes #10627 - apply host taxonomy scope to facts/report joins
Previous changes to perform a join onto hosts with authorisation resultin a query such as Report.joins(:hosts), which ignores anydefault_scope on Host::Base. This commit explicitly passes taxonomy...
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 #10720 - Adds API to get host vm attributes
This exposes an API to fetch a host's vm_compute_attributes,such as vmware cpus and memory. It lives at a separate endpointbecause it involves a fetch for data from the compute resource,and may have different performance characteristics than the database.
fixes #9301 - make puppet environment optional for hosts
Fixes #10566 - allow identifier modifications that do not change interface type
Fixes #9187 - Overrideable empty class parameters don't validate default value
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 #10646 - disable NIC subnet taxonomy checks when feature's disabled
Fixes #10664 - map only physical interfaces in compute orchestration
fixes #10660 - taxonomies are able to have the same name for different classes
fixes #10397 - parse Windows Local_Area_Connection interface name
fixes #1510 - notification when host finishes building
Fixes #10583 - perform uniq in database instead of in memory when possible
fixes #9873 - generate unique alert mails for each user group member
To create distinct mails, new Mailer instances are required instead of usingthe same one - else, the last message changes the previous ones. The recipientlist is now determined in the ReportImporter, and the MailNotification helps...
Fixes #10288 - prevent audits on update of puppetclass total hosts counter
Fixes #10535 - building a token instead of creating it until host is saved
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 #10528 - lookup value should allow false and 0 values
fixes #10482 - get external user group members only once during refresh
fixes #1213 - Get email reports of audit changes
fixes #10509 - add toggle for LDAP usergroup updating
fixes #10493 - disable usergroup sync on login when $login is used
Fixes #10442 - dry up host managed logic
Fixes #9634 - creating a host with an interface and without os returns a validation message
Fixes #9613 - foreman_url can't be blank
Fixes #10379 - disables cloning if unattended mode is disabled
Fixes #9966 - More debug messages for matching nics from fog
Fixes #10212 - validate DNS name uniqueness of interfaces
fixes #10403 - resync names of unmanaged hosts to their primary NIC
MoveHostNicsToInterfaces previously ignored unmanaged hosts, but theyneed migrating too. Updated the existing migration to migrate both,then for existing hosts, add a new migration to ensure all primary NIC...
fixes #10298 - handle destroyed but present interfaces
When deleting a host and DHCP orchestration is removing reservations for NICs,it generates a dhcp_record that contains next-server data. Determining thenext-server IP causes the primary interface to be fetched for DNS resolution,...
Fixes #8333 - correct matcher values with multi-key matchers
Fixes #10382 - Allow lowercase IPMI provider
Fixes #10263 - Encrypt LDAP password in db
This commit includes a rake task to encrypt all encryptable resources.A helper function can be used to add more encryption tasks easily.
Fixes #5649 - unattended_url validation fix
fixes #10343 - only log cache deletion failures when saving settings
Fixes #8566 - reorganized settings categories
fixes #10287 - provide helper methods for proxy features
fixes #7743 - ensure name is unique in scope of major and minor
Fixes #5554 - fixed hostgroup and fqdn validations in multiple matchers
Refs #3809 - Remove semicolon cop
fixes #8817 - look up reports with all joins from host scoped_search
This changes the optimisation in d50c799 which caused errors for users withhost filters referencing tables other than hosts.
When retrieving all reports joined with authorised hosts, the nested joins need...
refs #10168 - fix test that created a duplicate primary interface
Subtle interaction between 4d5b979 and a5dc3e2, resulting in the testthat tried to add an interface to an unmanaged host duplicating the onethat was automatically added.
fixes #10168 - delegate fqdn/shortname to primary interface
Fixes #10111 - Use a dummy primary interface for unmanaged hosts
Unmanaged hosts require a host interface due to delegation of networkingattributes, and some others like 'name'. Since unmanaged hosts do notnecessarily have an interface associated (unless created through puppet...
fixes #10234 - Fix NIC taxonomies validation tests
Some of the tests in #9391 changed the way subnets should work regardingtaxonomies and some test data, this commit fixes that so tests are greenonce again.
Fixes #9391 - Added validation code to NIC, so it validates that host's location/org is compatible with the one set on NIC's subnet
fixes #10020 - add next-server/filename attrs to provision NIC DHCP record
A host's DHCP record used to be constructed with PXE attributes inOrchestration::DHCP, but moved to Nic::Managed during 43c4bd7. Nic::Manageddidn't add PXE attributes, so this commit adds these when provision? is set....
Fixes #10093 - VMware#create_vm calls clone_vm
Apply '.with_indifferent_access' to the args passed in to create_vm,ensuring symbol test for args[:image_id] succeeds when args["image_id"]is present.
fixes #9993 - Removes root password and partition table reqs unless build mode selected
Fixes #9947 - restrict user taxonomies if none is set
Fixes #7615 - filter ignore current context
Fixes #9362 - Corrected CoreOS mediapath
fixes #5909 - return r/w resources from authorized scope
Fixes #9957 - rename and fix auth source tests
Fixes #8106 - Dashboard rewrite to allow better customization
fixes #9778 - return r/w host when finding and associating to CRs
Fixes #9967 - make sure User.current is isolated
Fixes #9926 - do not always set LDAP encryption method
Fixes #8890 - Allow selection of plaintext "encryption" method for root password
Fixes #9618 - make identifier uniq per host
Fixes #9885 - pass verify_mode to net/ldap
fixes #7407 - puppet class parameters should be cloned in #clone
fixes #9775 - always load Encryptable when key's missing, log runtime warning
a59972c3 causes Encryptable to be loaded before the encryption_key.rbinitialiser and the majority of the class was skipped as the key was undefined.
Now Encryptable always loads, but logs at runtime if the key is unavailable,...
Fixes #9434 - managed alias accepts only static boot mode subnet
fixes #9795 - check if mail is enabled before sending a notification
Fixes #8779 - add vlanid to subnet ENC
Fixes #9842 - rename the register method which deprecates the old one
Fixes #9787 - correctly typecast default values
JSON and YAML default values were double typecasted, once by activerecord and then by value_of_key method.
Fixes #6454 - Display error message when user_data is needed but not set
fixes #4424 - overriden attributes get overridden in the UI
Fixes #9631 - adds missing bond test
Fixes #9673 - treat YAML and JSON lookup keys as strings
Fixes #9657 - merge NICs from compute profile in host create API
- updated api docs for hosts and interfaces- host create/update api actions now merge interfaces from compute profiles- NIC type mapping extracted into a separate class- return full host detail after host update
fixes #8358 - validate domain on host update
Fixes #1536 - Foreman should check DHCP entries on build.
Fixes #9480 - multiple NICs integration with compute profiles
From users point of view:- interfaces setup in compute profiles is back- interface related compute attrs get merged into host NICs upon compute profile selection- NIC overview table displays details in the column "Type"...
Fixes #9615 - Adds inheriting_mac method
Using this method we can find out the MAC of interface to which thisinterface is attached to. This can be used in provisioning template whenwe check for real interface name.
fixes #8878 - ensure domain fact is downcased prior to import
Fixes #9547 - DHCP is default subnet boot mode
Fixes #9590 - make info test less fragile
Refs #9500 - revert normalize_name tests
Current test "#normalize_hostname sets a domain based on name that contains its name if it's nil and such domain exists" is not testing anything because Domain.all does not return any domains to match (as .create was substituted on merge by .build).
fixes #9118 - host mailer should not fail if no owner set for host
Fixes #9495 - Require identifier for managed bonds
Fixes #9497 - Require MAC for managed BMC
Fixes #9147 - move managed checks to the start of the DHCP/DNS/TFTP orchestration checks
refs #8331 - fix rubocop empty line warning