Puppet Class: gpioflicker

Inherits:
::gpioflicker::params
Defined in:
manifests/init.pp

Overview

Manage gpioflicker.

Examples:

Declaring the class

class { '::gpioflicker':
  device => '/dev/gpio1',
  pin    => 0,
}

Parameters:

  • active_time (Optional[Integer[0]]) (defaults to: undef)
  • device (Stdlib::Absolutepath)
  • initial_state (Optional[Integer[0, 1]]) (defaults to: undef)
  • package_name (String) (defaults to: $::gpioflicker::params::package_name)
  • pin (Integer[0])
  • reversed (Boolean) (defaults to: false)
  • service_name (String) (defaults to: $::gpioflicker::params::service_name)

Since:

  • 1.0.0



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'manifests/init.pp', line 18

class gpioflicker (
  Stdlib::Absolutepath    $device,
  Integer[0]              $pin,
  Optional[Integer[0]]    $active_time   = undef,
  Optional[Integer[0, 1]] $initial_state = undef,
  String                  $package_name  = $::gpioflicker::params::package_name,
  Boolean                 $reversed      = false,
  String                  $service_name  = $::gpioflicker::params::service_name,
) inherits ::gpioflicker::params {

  contain ::gpioflicker::install
  contain ::gpioflicker::config
  contain ::gpioflicker::service

  Class['::gpioflicker::install'] -> Class['::gpioflicker::config']
    ~> Class['::gpioflicker::service']
}