Defined Type: sentry::command
- Defined in:
- manifests/command.pp
Overview
Define: sentry::command
This define executes sentry commands.
Parameters
- command
-
The command to execute including any arguments.
- refreshonly
-
Whether to execute only when an event is received, defaults to ‘false`.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/command.pp', line 13
define sentry::command(
$command = $title,
$refreshonly = false,
) {
include sentry
validate_string($command)
validate_bool($refreshonly)
exec { "sentry_command_${title}":
command => join([
"${sentry::path}/virtualenv/bin/sentry",
"--config=${sentry::path}/sentry.conf.py",
$command
], ' '),
user => $sentry::owner,
refreshonly => $refreshonly,
}
}
|