Feature #3182
closedRemove requirement for entering an IP address when creating a new host
Description
In some scenarios, it's valid for a host's IP address to be optional and so the new host form shouldn't require it.
This would mean you then can't use DNS or DHCP orchestration, static IP-based foreman_bootdisk, etc. Perhaps if the user has DNS or DHCP orchestration configured, it should be mandatory.
Updated by Dominic Cleal about 11 years ago
- Related to Feature #2576: Optionally update Host.ip as part of /unattended/built added
Updated by Greg Sutcliffe about 11 years ago
- Status changed from New to Assigned
- Target version set to 1.4.0
This is fairly straightforward I think. We already have Host#require_ip_validation as a method, this can have logic added to cover:
- IP needed if the Host is assigned to a DNS and/or DHCP proxy (since the IP is needed for those functions)
- IP not needed if the above is not true and tokens are enabled (otherwise IP is needed for templates)
- IP not needed if it's an image based deployment (since there's only a finish template, and Foreman sends it, it's not retrieved by the host)
Sound good?
Updated by Dominic Cleal about 11 years ago
Sounds good. A few more thoughts:
- check for areas of the UI that might assume the IP is always stored too, see they display OK?
- add a test fixture without an IP
- ensure the API works consistently
Updated by Greg Sutcliffe about 11 years ago
Tests are a given ofc. I'll see what I can do about the UI. What are you thinking of re: the API?
Updated by Dominic Cleal about 11 years ago
That the API doc didn't require it - just checked and it doesn't, so nvm.
Updated by Dominic Cleal about 11 years ago
- Status changed from Assigned to Ready For Testing
- Translation missing: en.field_release set to 2
Updated by Dominic Cleal about 11 years ago
- Has duplicate Feature #2214: Specifying host IP address should not be mandatory for unmanaged DNS/DHCP subnets added
Updated by Dominic Cleal about 11 years ago
- Related to Feature #359: Add support for 'hostname=<hostname>' spoofing for Unattended Installs added
Updated by Greg Sutcliffe about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 01302dc56e2f7b0f32092eebaea345d8cd70b015.