1CDIST-TYPE__HOSTS(7) cdist CDIST-TYPE__HOSTS(7)
2
3
4
6 cdist-type__hosts - manage entries in /etc/hosts
7
9 Add or remove entries from /etc/hosts file.
10
12 state If state is present, make object_id resolve to ip. If state is
13 absent, object_id will no longer resolve via /etc/hosts, if it
14 was previously configured with this type. Manually inserted
15 entries are unaffected.
16
17 ip IP address, to which hostname (=object_id) must resolve. If
18 state is present, this parameter is mandatory, if state is
19 absent, this parameter is silently ignored.
20
22 # Now `funny' resolves to 192.168.1.76,
23 __hosts funny --ip 192.168.1.76
24 # and `happy' no longer resolve via /etc/hosts if it was
25 # previously configured via __hosts.
26 __hosts happy --state absent
27
29 hosts(5)
30
32 Dmitry Bogatov <KAction@gnu.org>
33
35 Copyright (C) 2015,2016 Dmitry Bogatov. Free use of this software is
36 granted under the terms of the GNU General Public License version 3 or
37 later (GPLv3+).
38
40 ungleich GmbH 2019
41
42
43
44
456.3.0 Dec 12, 2019 CDIST-TYPE__HOSTS(7)