b42eef0dc4
This removes the systemd service templates and tasks from this role and leverages a common systemd service role instead. This change removes a lot of code duplication across all roles all without sacrificing features or functionality. The intention of this change is to ensure uniformity and reduce the maintenance burden on the community when sweeping changes are needed. In converting this role to use the common systemd_service role a keystone_service dictionary was created in the defaults main.yml file. This change follows the pattern of other services. Change-Id: I70e1f6007d9f88f05ccdc737b210415274580a46 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# Copyright 2016, 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.
|
|
|
|
- name: Ensure uWSGI directory exists
|
|
file:
|
|
path: "/etc/uwsgi/"
|
|
state: directory
|
|
mode: "0711"
|
|
|
|
- name: Apply uWSGI configuration
|
|
config_template:
|
|
src: "keystone-uwsgi.ini.j2"
|
|
dest: "/etc/uwsgi/{{ item }}.ini"
|
|
mode: "0744"
|
|
config_overrides: "{{ keystone_uwsgi_ini_overrides }}"
|
|
config_type: ini
|
|
with_items: "{{ keystone_services.keys() }}"
|
|
notify:
|
|
- Manage LB
|
|
- Restart uWSGI
|
|
|
|
- name: Run the systemd service role
|
|
include_role:
|
|
name: systemd_service
|
|
private: true
|
|
vars:
|
|
systemd_services: "{{ keystone_services.values() }}"
|
|
systemd_tempd_prefix: openstack
|
|
systemd_bin_path: "{{ keystone_bin }}"
|
|
system_lock_path: /var/lock/keystone
|
|
tags:
|
|
- keystone-config
|