Resource Type: computer

NOTE: This page was generated from the Puppet source code on 2018-08-28 06:48:02 -0700 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

Allowed values:

  • 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.

  • Confined to: operatingsystem == darwin
  • Default for operatingsystem == darwin

NOTE: This page was generated from the Puppet source code on 2018-08-28 06:48:02 -0700