Provided by: cdist_5.1.3-1_all
cdist-type__hosts - manage entries in /etc/hosts
Add or remove entries from /etc/hosts file.
state If state is present, make object_id resolve to ip. If state is absent, object_id will no longer resolve via /etc/hosts, if it was previously configured with this type. Manually inserted entries are unaffected. ip IP address, to which hostname (=object_id) must resolve. If state is present, this parameter is mandatory, if state is absent, this parameter is silently ignored.
# Now `funny' resolves to 192.168.1.76, __hosts funny --ip 192.168.1.76 # and `happy' no longer resolve via /etc/hosts if it was # previously configured via __hosts. __hosts happy --state absent
Dmitry Bogatov <KAction@gnu.org>
Copyright (C) 2015,2016 Dmitry Bogatov. Free use of this software is granted under the terms of the GNU General Public License version 3 or later (GPLv3+).
ungleich GmbH 2019