Forge Home

puppet_device

Manage devices used by 'puppet device' on puppet agents.

23,046 downloads

5,735 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.5.0 (latest)
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.3
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.7
  • 2.3.6
  • 2.3.5
  • 2.3.4
  • 2.3.3
  • 2.3.2
  • 2.3.0
  • 2.2.0 (deleted)
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.1
  • 2.0.0
  • 1.1.1
  • 1.1.0 (deleted)
  • 1.0.9 (deleted)
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4 (deleted)
  • 1.0.3 (deleted)
  • 1.0.2 (deleted)
  • 1.0.1 (deleted)
  • 1.0.0 (deleted)
released Jun 27th 2017
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet > 4.7.0 < 6.0.0
  • , ,
This module has been deprecated by its author since Jun 1st 2018.

The author has suggested puppetlabs-device_manager as its replacement.

Start using this module

Documentation

tkishel/puppet_device — version 1.0.6 Jun 27th 2017

puppet_device

Table of Contents

  1. Description
  2. Usage
  3. Parameters
  4. Limitations
  5. Reference

Description

Devices require a (proxy) Puppet agent to request certificates, collect facts, retrieve and apply catalogs, and store reports.

This module manages the configuration of devices used by puppet device on Puppet agents.

This module also provides the potential for indirect orchestration of puppet device runs.

Usage

Install the puppet_device module:

puppet module install tkishel-puppet_device

Declare puppet_device resource(s):

puppet_device { 'bigip':
  type   => 'f5',
  url    => 'https://admin:fffff55555@10.0.0.245/',
}

Note that the 'f5' device type is used as an example: this module is not limited to F5 devices.

Parameters

title

Data type: String

Specifies the certname of the device.

ensure

Data type: String

This parameter is optional, with valid options of: 'present' (the default) and 'absent'.

Setting to 'absent' deletes the device from device.conf and the puppet_devices fact, and negates the effect of any other parameters.

type

Data type: String

Specifies the type of the device.

url

Data type: String

Specifies the URL used to configure the device.

debug

Data type: Boolean

This parameter is optional, with a default of false.

Specifies transport-level debug output for the device, and is limited to telnet and ssh transports.

run

Data type: Boolean

This parameter is optional, with a default of false.

Specifies whether to run puppet device during each puppet agent run on the puppet agent.

If puppet device --target is available, it will create an Exec resource for each device; otherwise, it will create one Exec resource for all devices.

Setting to true, it can be combined with Orchestration (and a PQL query) to indirectly orchestrate a puppet device run on the puppet agent for a device:

puppet job run --query 'resources[certname, type, title, parameters] { type = "Puppet_device" and title = "bigip" and parameters.ensure = "present"}'

The following illustrates the PQL query:

[root@pe-201645-master ~]# puppet query 'resources[certname, type, title, parameters] { type = "Puppet_device" and title = "bigip" and parameters.ensure = "present"}'
[ {
  "certname" : "pe-201645-master.puppetdebug.vlan",
  "type" : "Puppet_device",
  "title" : "bigip",
  "parameters" : {
    "ensure" : "present",
    "type" : "f5",
    "url" : "https://admin:fffff55555@10.0.0.245/",
    "debug" : false,
    "run" : true,
  }
}

Limitations

See manifests/todo.pp

Reference

This module manages device.conf and puppet_devices.yaml, including entries for each puppet_device resource declared on the puppet agent.

For more information about devices, see:

https://docs.puppet.com/puppet/latest/man/device.html https://docs.puppet.com/puppet/latest/config_file_device.html