Merge "Fluentd: Set cinder-backup log path"

This commit is contained in:
Zuul 2018-08-06 17:40:40 +00:00 committed by Gerrit Code Review
commit 0f77e609d8
2 changed files with 24 additions and 1 deletions

View File

@ -52,6 +52,11 @@ parameters:
CephClientUserName:
default: openstack
type: string
DockerCinderBackupLoggingSource:
type: json
default:
tag: openstack.cinder.backup
path: /var/log/containers/cinder/cinder-backup.log
resources:
@ -82,7 +87,14 @@ outputs:
config_settings: {get_attr: [CinderBase, role_data, config_settings]}
logging_source: {get_attr: [CinderBase, role_data, logging_source]}
logging_groups: {get_attr: [CinderBase, role_data, logging_groups]}
service_config_settings: {get_attr: [CinderBase, role_data, service_config_settings]}
service_config_settings:
map_merge:
- get_attr: [CinderBase, role_data, service_config_settings]
- fluentd:
tripleo_fluentd_groups_cinder_backup:
- cinder
tripleo_fluentd_sources_cinder_backup:
- {get_param: DockerCinderBackupLoggingSource}
# BEGIN DOCKER SETTINGS
puppet_config:
config_volume: cinder

View File

@ -63,6 +63,11 @@ parameters:
MonitoringSubscriptionCinderBackup:
default: 'overcloud-cinder-backup'
type: string
CinderBackupLoggingSource:
type: json
default:
tag: openstack.cinder.backup
path: /var/log/cinder/cinder-backup.log
resources:
@ -96,6 +101,12 @@ outputs:
cinder::backup::swift::backup_swift_container: volumebackups
cinder::backup::nfs::backup_share: {get_param: CinderBackupNfsShare}
cinder::backup::nfs::backup_mount_options: {get_param: CinderBackupNfsMountOptions}
service_config_settings:
fluentd:
tripleo_fluentd_groups_cinder_backup:
- cinder
tripleo_fluentd_sources_cinder_backup:
- {get_param: CinderBackupLoggingSource}
step_config:
str_replace:
template: "include ::tripleo::profile::base::cinder::backup::DRIVER"