f77cc7a861
Galera logs by default to /var/log/mysql_logs these logs are being ignored and not mounted properly on the host server, because the service_name that is used to mount the log directory is "galera" and not "mysql_logs". This patch adds an option to set the log_directory specifically inside the env.d yml files, but defaults to "service_name" when the log_directory option isn't set. This will mean functionality remains unchanged for all services. Additionally, the log_directory has changed to "mysql_logs" for galera containers, to resolve the galera log issue. Change-Id: I18400248da455156dbba31b9c2ff254b58c51673 Closes-Bug: #1486955
33 lines
896 B
YAML
33 lines
896 B
YAML
---
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
component_skel:
|
|
galera:
|
|
belongs_to:
|
|
- galera_all
|
|
|
|
|
|
container_skel:
|
|
galera_container:
|
|
belongs_to:
|
|
- infra_containers
|
|
- shared-infra_containers
|
|
contains:
|
|
- galera
|
|
properties:
|
|
log_directory: mysql_logs
|
|
service_name: galera
|
|
container_release: trusty
|