pe_event_forwarding
: Create the required cron job and scripts for sending Puppet Events
pe_event_forwarding::v2_cleanup
: A subclass to remove old settings file.
pe_event_forwarding::base_path
: This custom function returns the base path of any given string argument. If a desired path is not passed in, it will match the default str arpe_event_forwarding::secure
: Custom function to mark sensitive data utilized by this module as Sensitive types in the Puppet language. Sensitive data is redacted from Pup
activities
: This task scrapes the PE activity API for all events.orchestrator
: This task scrapes the orchestrator for jobs
pe_event_forwarding::acceptance::pe_server
: Install PE Serverpe_event_forwarding::acceptance::provision_machines
: Provisions machines
This class will create the cron job that executes the event management script. It also creates the event management script in the required directory.
include pe_event_forwarding
The following parameters are available in the pe_event_forwarding
class:
pe_username
pe_password
pe_token
pe_console
disabled
cron_minute
cron_hour
cron_weekday
cron_month
cron_monthday
log_level
log_rotation
log_path
lock_path
confdir
api_page_size
timeout
skip_jobs
skip_events
Data type: Optional[String]
PE username
Default value: undef
Data type: Optional[String]
PE password
Default value: undef
Data type: Optional[String]
PE token
Default value: undef
Data type: String
PE console
Default value: 'localhost'
Data type: Boolean
When true, removes cron job
Default value: false
Data type: String
Sets cron minute (0-59)
Default value: '*/2'
Data type: String
Sets cron hour (0-23)
Default value: '*'
Data type: String
Sets cron day of the week (0-6)
Default value: '*'
Data type: String
Sets cron month (1-12)
Default value: '*'
Data type: String
Sets cron day of the month (1-31)
Default value: '*'
Data type: Enum['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL']
Determines the severity of logs to be written to log file:
- level debug will only log debug-level log messages
- level info will log info, warn, and fatal-level log messages
- level warn will log warn and fatal-level log messages
- level fatal will only log fatal-level log messages
Default value: 'WARN'
Data type: Enum['NONE', 'DAILY', 'WEEKLY', 'MONTHLY']
Determines rotation time for log files
Default value: 'NONE'
Data type: Optional[String]
Should be a directory; base path to desired location for log files
/pe_event_forwarding/pe_event_forwarding.log
will be appended to this param
Default value: undef
Data type: Optional[String]
Should be a directory; base path to desired location for lock file
/pe_event_forwarding/cache/state/events_collection_run.lock
will be appended to this param
Default value: undef
Data type: Optional[String]
Path to directory where pe_event_forwarding exists
Default value: undef
Data type: Optional[Integer]
Sets max number of events retrieved per API call Note: This parameter is only used for event collection from the Activity API.
Default value: undef
Data type: Optional[Integer]
Optional timeout limit in seconds for connect, read, and ssl sessions
When set to undef
the default of 60 seconds will be used
Default value: undef
Data type: Optional[Boolean]
When true, event collection from the Orchestrator API is disabled.
Default value: undef
Data type:
Optional[Array[Enum[
'classifier',
'code-manager',
'pe-console',
'rbac']]]
Array of event types that should be skipped during event collection from the Activity API. Acceptable values are: ['classifier','code-manager','pe-console','rbac']
Default value: undef
Type: Ruby 4.x API
This custom function returns the base path of any given string
argument. If a desired path is not passed in, it will match the
default str argument up to puppetlabs
.
pe_event_forwarding::base_path(default_path, desired_path)
This custom function returns the base path of any given string
argument. If a desired path is not passed in, it will match the
default str argument up to puppetlabs
.
Returns: String
Returns a string
pe_event_forwarding::base_path(default_path, desired_path)
Data type: Any
The backup path to set; default
Data type: Any
The desired path
Type: Ruby 4.x API
Custom function to mark sensitive data utilized by this module as Sensitive types in the Puppet language. Sensitive data is redacted from Puppet logs and reports.
Custom function to mark sensitive data utilized by this module as Sensitive types in the Puppet language. Sensitive data is redacted from Puppet logs and reports.
Returns: Any
Data type: Hash
This task scrapes the PE activity API for all events.
Supports noop? false
Data type: String[1]
The FQDN of the PE console
Data type: Optional[String[1]]
A PE user name
Data type: Optional[String[1]]
The PE console password
This task scrapes the orchestrator for jobs
Supports noop? false
Data type: String[1]
The FQDN of the PE console
Data type: Optional[String[1]]
A PE user name
Data type: Optional[String[1]]
The PE console password
Data type: Optional[String[1]]
An Auth token for a user
Data type: Enum['run_facts_task', 'run_job', 'get_job', 'current_job_count', 'get_jobs']
The task to perform in the orchestrator.
Data type: Optional[String[1]]
Data to send to the orchestrator for the operation
Data type: Optional[String[1]]
Nodes to run facts on. Different from console host target
Install PE Server
pe_event_forwarding::acceptance::pe_server
The following parameters are available in the pe_event_forwarding::acceptance::pe_server
plan:
Data type: Optional[String]
PE version
Default value: '2021.7.5'
Data type: Optional[Hash]
Hash with key password
and value of PE console password for admin user
Default value: { password => 'puppetlabspie', configure_tuning => false }
Provisions machines
The following parameters are available in the pe_event_forwarding::acceptance::provision_machines
plan:
Data type: Optional[String]
provision service
Default value: 'abs'
Data type: Optional[String]
os image
Default value: 'centos-7-x86_64'