9fd77b3856
By default gear dies not deliver default logging configuration. If it is started in this configuration it floods /var/log/messages with debug info. Log configuration activation should be done via systemd override.conf file by setting proper ARGS Update jobs to also collect /var/logs/gear in post-run task. Change-Id: Ib69c976062afd38a91a3d882e9389c5cbef244c3 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
84 lines
2.5 KiB
YAML
84 lines
2.5 KiB
YAML
# Copyright 2015 Red Hat, 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.
|
|
---
|
|
# tasks/main.yaml
|
|
gear_task_manager:
|
|
- pre
|
|
- install
|
|
- config
|
|
- service
|
|
|
|
# tasks/config.yaml
|
|
gear_user_name: gear
|
|
gear_user_group: gear
|
|
gear_user_home: /var/lib/gear
|
|
|
|
gear_file_ssl_ca_content:
|
|
gear_file_ssl_ca_dest: /etc/gear/ssl/root-ca.pem
|
|
gear_file_ssl_ca_group: "{{ gear_user_group }}"
|
|
gear_file_ssl_ca_mode: 0644
|
|
gear_file_ssl_ca_owner: "{{ gear_user_name }}"
|
|
gear_file_ssl_ca_src: etc/gear/ssl/root-ca.pem
|
|
|
|
gear_file_ssl_cert_content:
|
|
gear_file_ssl_cert_dest: /etc/gear/ssl/server.pem
|
|
gear_file_ssl_cert_group: "{{ gear_user_group }}"
|
|
gear_file_ssl_cert_mode: 0644
|
|
gear_file_ssl_cert_owner: "{{ gear_user_name }}"
|
|
gear_file_ssl_cert_src: etc/gear/ssl/server.pem
|
|
|
|
gear_file_ssl_key_content:
|
|
gear_file_ssl_key_dest: /etc/gear/ssl/server.key
|
|
gear_file_ssl_key_group: "{{ gear_user_group }}"
|
|
gear_file_ssl_key_mode: 0600
|
|
gear_file_ssl_key_owner: "{{ gear_user_name }}"
|
|
gear_file_ssl_key_src: etc/gear/ssl/server.key
|
|
|
|
gear_file_log_config_dest: /etc/gear/logging.conf
|
|
gear_file_log_config_group: "{{ gear_user_group }}"
|
|
gear_file_log_config_mode: 0644
|
|
gear_file_log_config_owner: "{{ gear_user_name }}"
|
|
gear_file_log_config_src: etc/gear/logging.conf
|
|
|
|
# tasks/install.yaml
|
|
gear_git_dest: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/gear"
|
|
gear_git_uri: https://git.openstack.org/openstack-infra/gear
|
|
gear_git_version: master
|
|
# gear_git_refspec:
|
|
# gear_git_update:
|
|
|
|
gear_install_method: pip
|
|
|
|
gear_pip_name: gear
|
|
# gear_pip_executable:
|
|
# gear_pip_extra_args:
|
|
# gear_pip_version:
|
|
# gear_pip_virtualenv_python:
|
|
# gear_pip_virtualenv:
|
|
|
|
# tasks/service.yaml
|
|
gear_file_gear_service_manage: true
|
|
gear_file_gear_service_group: root
|
|
gear_file_gear_service_owner: root
|
|
|
|
gear_file_gear_service_config_manage: true
|
|
gear_file_gear_service_config_group: root
|
|
gear_file_gear_service_config_owner: root
|
|
|
|
gear_service_gear_daemon_reload: true
|
|
gear_service_gear_enabled: yes
|
|
gear_service_gear_manage: true
|
|
gear_service_gear_name: gear
|
|
gear_service_gear_state: started
|