Resource Type: computer

Included in Puppet Enterprise 3.8. A newer version is available; see the version menu above for details.

NOTE: This page was generated from the Puppet source code on 2016-01-15 16:31:56 +0100

computer

Description

Computer object management using DirectoryService on OS X.

Note that these are distinctly different kinds of objects to ‘hosts’, as they require a MAC address and can have all sorts of policy attached to them.

This provider only manages Computer objects in the local directory service domain, not in remote directories.

If you wish to manage /etc/hosts file on Mac OS X, then simply use the host type as per other platforms.

This type primarily exists to create localhost Computer objects that MCX policy can then be attached to.

Autorequires: If Puppet is managing the plist file representing a Computer object (located at /var/db/dslocal/nodes/Default/computers/{name}.plist), the Computer resource will autorequire it.

Attributes

computer { 'resource title':
  name       => # (namevar) The authoritative 'short' name of the computer...
  ensure     => # Control the existences of this computer record...
  en_address => # The MAC address of the primary network...
  ip_address => # The IP Address of the Computer...
  provider   => # The specific backend to use for this `computer...
  realname   => # The 'long' name of the computer...
  # ...plus any applicable metaparameters.
}

name

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

The authoritative ‘short’ name of the computer record.

(↑ Back to computer attributes)

ensure

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

Control the existences of this computer record. Set this attribute to present to ensure the computer record exists. Set it to absent to delete any computer records with this name

Valid values are present, absent.

(↑ Back to computer attributes)

en_address

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

The MAC address of the primary network interface. Must match en0.

(↑ Back to computer attributes)

ip_address

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

The IP Address of the Computer object.

(↑ Back to computer attributes)

provider

The specific backend to use for this computer resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

Available providers are:

(↑ Back to computer attributes)

realname

The ‘long’ name of the computer record.

(↑ Back to computer attributes)

Providers

directoryservice

Computer object management using DirectoryService on OS X. Note that these are distinctly different kinds of objects to ‘hosts’, as they require a MAC address and can have all sorts of policy attached to them.

This provider only manages Computer objects in the local directory service domain, not in remote directories.

If you wish to manage /etc/hosts on Mac OS X, then simply use the host type as per other platforms.

  • Default for operatingsystem == darwin.

NOTE: This page was generated from the Puppet source code on 2016-01-15 16:31:56 +0100

↑ Back to top