diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-17 18:50:51 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-17 18:50:51 +0000 |
commit | dc9c4c2ad9f8ee08d3b97f09641f580bb32c1592 (patch) | |
tree | 940c3fa289dd1856d7b8e78f51f606eb3286a605 /puppet/services/database | |
parent | 4a504411a9c63eda4c16c1cdbff486453a60a5ba (diff) | |
parent | 0d9298bb8fc9903ff42e3d2402cd44e765f4c822 (diff) |
Merge "Add fluentd client service"
Diffstat (limited to 'puppet/services/database')
-rw-r--r-- | puppet/services/database/mongodb.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/puppet/services/database/mongodb.yaml b/puppet/services/database/mongodb.yaml index 36962a34..01daeafe 100644 --- a/puppet/services/database/mongodb.yaml +++ b/puppet/services/database/mongodb.yaml @@ -19,6 +19,15 @@ parameters: description: Mapping of service endpoint -> protocol. Typically set via parameter_defaults in the resource registry. type: json + MongoDbLoggingSource: + type: json + description: Fluentd logging configuration for mongodb. + default: + tag: database.mongodb + path: /var/log/mongodb/mongodb.log + format: >- + /(?<time>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+\+\d{4}) + (?<message>.*)$/ resources: MongoDbBase: @@ -33,6 +42,9 @@ outputs: description: Service mongodb using composable services. value: service_name: mongodb + logging_groups: + - mongodb + logging_source: {get_param: MongoDbLoggingSource} config_settings: map_merge: - get_attr: [MongoDbBase, role_data, config_settings] |