Bug 33743 - UCRV interfaces/*/hosts undocumented
UCRV interfaces/*/hosts undocumented
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCR - Info Files
UCS 5.0
Other Linux
: P5 minor (vote)
: UCS 5.0
Assigned To: Philipp Hahn
Florian Best
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-12 16:04 CET by Philipp Hahn
Modified: 2021-05-25 15:58 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-12-12 16:04:49 CET
$ grep interfaces/.*/hosts /etc/univention/registry.info/variables/*
$ cat /etc/univention/templates/files/etc/hosts.d/00-base
...
# Add IPv4 and IPv6 addresses of interfaces
# May be overridden by .../hosts
...
default_hosts = '%(hostname)s.%(domainname)s %(hostname)s' % configRegistry
...
                key = 'interfaces/%s/hosts' % (iface,)
                hosts = configRegistry.get(key, default_hosts)
                if hosts:
                        entries.append((iface, None, '%s\t%s' % (value, hosts)))
...
                key = 'interfaces/%s/ipv6/%s/hosts' % (iface, name)

cat >>/etc/univention/registry.info/variables/univention-base-files.cfg
[interfaces/.*/hosts]
Description[de]=Überschreibt die Namen, die mit der IP-Adresse des Netzwerkinterfaces assoziiert werden. Standardmäßig wir der Hostname und der FQDN benutzt.
Description[en]=Overwrite the names associated with the IP address of the network interface in /etc/hosts. By default the host-name and the FQDN are used.
Type=str
Categories=system-network
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:51:46 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Comment 2 Philipp Hahn univentionstaff 2020-07-04 08:33:15 CEST
[feature/ucs5] 7de281e3cd Bug #33743 base: Document UCRV interfaces/.*/hosts
 base/univention-base-files/debian/changelog                         | 6 ++++++
 .../univention-base-files.univention-config-registry-variables      | 6 ++++++
 doc/changelog/changelog-5.0-0.xml                                   | 2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)
Comment 3 Florian Best univentionstaff 2020-07-14 13:57:26 CEST
OK (with a small fixup commit)
OK: changelog entry
Comment 4 Florian Best univentionstaff 2021-05-25 15:58:58 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".