25 lines
428 B
Puppet
25 lines
428 B
Puppet
#
|
|
# Copyright (c) 2016 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
class nfv::event_log (
|
|
$enabled = false,
|
|
$storage_file = '/var/log/nfv-vim-events.log',
|
|
) {
|
|
|
|
include nfv::params
|
|
|
|
nfv_plugin_event_log_config {
|
|
# File-Storage Information
|
|
'File-Storage/file': value => $storage_file;
|
|
}
|
|
|
|
if $enabled {
|
|
$ensure = 'running'
|
|
} else {
|
|
$ensure = 'stopped'
|
|
}
|
|
}
|