Defined Type: crowdsec::local_api::register

Defined in:
manifests/local_api/register.pp

Summary

Registers a machine at the local apu

Overview

Registering machines at the local api is done using puppetdb_query, so we only collect exported ressources. Don’t try to use this define directly.

Examples:

@@crowdsec::local_api::register { 'namevar':
  password => 'mysecret',
}

Parameters:

  • password (String)
  • machine_id (String) (defaults to: $name)


11
12
13
14
15
16
17
18
# File 'manifests/local_api/register.pp', line 11

define crowdsec::local_api::register (
  String $password,
  String $machine_id = $name,
) {

  fail('crowdsec::local_api::register should be used as exported resource only!')

}