pe_event_forwarding
: Create the required cron job and scripts for sending Puppet Events
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 ar
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_path
lock_path
confdir
api_page_size
log_level
log_rotation
Data type: Optional[String]
PE username
Default value: undef
Data type: Optional[Sensitive[String]]
PE password
Default value: undef
Data type: Optional[String]
PE token
Default value: undef
Data type: Optional[String]
PE console
Default value: 'localhost'
Data type: Optional[Boolean]
When true, removes cron job
Default value: false
Data type: Optional[String]
Sets cron minute (0-59)
Default value: '*/2'
Data type: Optional[String]
Sets cron hour (0-23)
Default value: '*'
Data type: Optional[String]
Sets cron day of the week (0-6)
Default value: '*'
Data type: Optional[String]
Sets cron month (1-12)
Default value: '*'
Data type: Optional[String]
Sets cron day of the month (1-31)
Default value: '*'
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: "${pe_event_forwarding::base_path($settings::confdir,undef)}/pe_event_forwarding"
Data type: Optional[Integer]
Sets max number of events retrieved per API call
Default value: undef
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'
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
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: '2019.8.7'
Data type: Optional[Hash]
Hash with key password
and value of PE console password for admin user
Default value: {password => 'puppetlabs'}
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'