salt.states.host

Management of addresses and names in hosts file.

The hosts file can be managed to contain definitions for specific hosts:

salt-master:
  host.present:
    - ip: 192.168.0.42

Members

absent

salt.states.host.absent(name, ip)

Ensure that the named host is absent

name
The host to remove
ip
The ip addr of the host to remove

present

salt.states.host.present(name, ip)

Ensures that the named host is present with the given ip

name
The host to assign an ip to
ip
The ip addr to apply to the host

Parent topic

Table Of Contents

Previous topic

salt.states.group

Next topic

salt.states.kmod