Feature #3136
closedhost cloning should auto-suggest a new IP address
Description
If cloning a new host, the IP address should be auto-suggested and the hostname field should be blanked out.
Updated by Martin Matuška about 11 years ago
https://github.com/theforeman/foreman/pull/902
This one is bite-size and might be considered for 1.3
Updated by Ewoud Kohl van Wijngaarden about 11 years ago
I like blanking the IP, but the name may be undesirable. Suppose you clone web1 to web2, then it's helpful to already have the name there. It would be nice to have auto increment the numbers if detected and checked for duplicates (if web2 is already taken, it tries web3). Maybe this could make a cool plugin. It could also suggest the name for new VMs based on the host group name.
Updated by Martin Matuška about 11 years ago
I understand your point of view. But I disagree with using the source host name as a name for the cloned host, as it is predestined to fail. The name is e.g. checked against DNS. You see the old name in the URL of the cloning page anyway.
I would rather suggest adding an informative field to the form that shows you what host you are cloning from. What I do agree with, that in the future there should be a new option for hostgroups to auto-suggest new host names based on some regexp rules.
Updated by Ewoud Kohl van Wijngaarden about 11 years ago
I must admit I haven't cloned a host recently. If the old hostname is still visible, but not filled in would be sufficient.
Updated by Dominic Cleal about 11 years ago
- Status changed from New to Ready For Testing
- Assignee set to Martin Matuška
Updated by Anonymous about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 4638a878426df7caedb1ac0c6f105ef46cde78c9.
Updated by Greg Sutcliffe about 11 years ago
- Translation missing: en.field_release set to 2
Updated by Dominic Cleal about 10 years ago
- Related to Bug #7620: When cloning host, old hostname is no longer shown added