Open source Puppet documentation

NOTE: This page was generated from the Puppet source code on 2018-03-20 07:07:39 -0700

host

Description

The host’s IP address, IPv4 or IPv6.

Attributes

host { 'resource title':
  name         => # (namevar) The host...
  ensure       => # The basic property that the resource should be...
  comment      => # A comment that will be attached to the line with 
  host_aliases => # Any aliases the host might have.  Multiple...
  ip           => # The host's IP address, IPv4 or...
  target       => # The file in which to store service information.  
  # ...plus any applicable metaparameters.
}

name

(Namevar: If omitted, this attribute’s value defaults to the resource’s title.)

The host name.

(↑ Back to host attributes)

ensure

(Property: This attribute represents concrete state on the target system.)

The basic property that the resource should be in.

Default: present

Allowed values:

  • present
  • absent

(↑ Back to host attributes)

comment

(Property: This attribute represents concrete state on the target system.)

A comment that will be attached to the line with a # character.

(↑ Back to host attributes)

host_aliases

(Property: This attribute represents concrete state on the target system.)

Any aliases the host might have. Multiple values must be specified as an array.

(↑ Back to host attributes)

ip

(Property: This attribute represents concrete state on the target system.)

The host’s IP address, IPv4 or IPv6.

(↑ Back to host attributes)

target

(Property: This attribute represents concrete state on the target system.)

The file in which to store service information. Only used by those providers that write to disk. On most systems this defaults to /etc/hosts.

(↑ Back to host attributes)

Providers

parsed

  • Confined to: exists == hosts

NOTE: This page was generated from the Puppet source code on 2018-03-20 07:07:39 -0700

Back to top