Defined Type: powerman::device

Defined in:
manifests/device.pp

Summary

Manage powerman device

Overview

Parameters:

  • driver (String)

    The device driver

  • endpoint (String)

    Device endpoint

  • flags (Optional[String]) (defaults to: undef)

    Device flags

  • order (String) (defaults to: '25')

    Order in powerman.conf



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/device.pp', line 11

define powerman::device (
  String $driver,
  String $endpoint,
  Optional[String] $flags = undef,
  String $order = '25',
) {

  include powerman

  concat::fragment { "powerman.conf.device.${name}":
    target  => $powerman::cfgfile,
    content => template('powerman/etc/powerman/device.erb'),
    order   => $order,
  }
}