866e71d640
It is possible that a user will not want the roles to control the service settings. For example, if a service dies and you don't want to auto restart it. Change-Id: I1d99a712984a71f41533cadda317c13f03b9f779 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
99 lines
3.8 KiB
YAML
99 lines
3.8 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.
|
|
---
|
|
- name: Define zuul_file_zuul_service_config_dest.
|
|
set_fact:
|
|
zuul_file_zuul_service_config_dest: "{{ __zuul_file_zuul_service_config_dest }}"
|
|
when: zuul_file_zuul_service_config_dest is not defined
|
|
|
|
- name: Define zuul_file_zuul_service_config_mode.
|
|
set_fact:
|
|
zuul_file_zuul_service_config_mode: "{{ __zuul_file_zuul_service_config_mode }}"
|
|
when: zuul_file_zuul_service_config_mode is not defined
|
|
|
|
- name: Define zuul_file_zuul_service_config_src.
|
|
set_fact:
|
|
zuul_file_zuul_service_config_src: "{{ __zuul_file_zuul_service_config_src }}"
|
|
when: zuul_file_zuul_service_config_src is not defined
|
|
|
|
- name: Define zuul_file_zuul_merger_service_dest.
|
|
set_fact:
|
|
zuul_file_zuul_merger_service_dest: "{{ __zuul_file_zuul_merger_service_dest }}"
|
|
when: zuul_file_zuul_merger_service_dest is not defined
|
|
|
|
- name: Define zuul_file_zuul_merger_service_mode.
|
|
set_fact:
|
|
zuul_file_zuul_merger_service_mode: "{{ __zuul_file_zuul_merger_service_mode }}"
|
|
when: zuul_file_zuul_merger_service_mode is not defined
|
|
|
|
- name: Define zuul_file_zuul_merger_service_src.
|
|
set_fact:
|
|
zuul_file_zuul_merger_service_src: "{{ __zuul_file_zuul_merger_service_src }}"
|
|
when: zuul_file_zuul_merger_service_src is not defined
|
|
|
|
- name: Define zuul_file_zuul_server_service_dest.
|
|
set_fact:
|
|
zuul_file_zuul_server_service_dest: "{{ __zuul_file_zuul_server_service_dest }}"
|
|
when: zuul_file_zuul_server_service_dest is not defined
|
|
|
|
- name: Define zuul_file_zuul_server_service_mode.
|
|
set_fact:
|
|
zuul_file_zuul_server_service_mode: "{{ __zuul_file_zuul_server_service_mode }}"
|
|
when: zuul_file_zuul_server_service_mode is not defined
|
|
|
|
- name: Define zuul_file_zuul_server_service_src.
|
|
set_fact:
|
|
zuul_file_zuul_server_service_src: "{{ __zuul_file_zuul_server_service_src }}"
|
|
when: zuul_file_zuul_server_service_src is not defined
|
|
|
|
- name: Copy zuul service config into place.
|
|
copy:
|
|
dest: "{{ zuul_file_zuul_service_config_dest }}"
|
|
group: "{{ zuul_file_zuul_service_config_group }}"
|
|
mode: "{{ zuul_file_zuul_service_config_mode }}"
|
|
owner: "{{ zuul_file_zuul_service_config_owner }}"
|
|
src: "{{ zuul_file_zuul_service_config_src }}"
|
|
|
|
- name: Copy zuul-merger service into place.
|
|
copy:
|
|
dest: "{{ zuul_file_zuul_merger_service_dest }}"
|
|
group: "{{ zuul_file_zuul_merger_service_group }}"
|
|
mode: "{{ zuul_file_zuul_merger_service_mode }}"
|
|
owner: "{{ zuul_file_zuul_merger_service_owner }}"
|
|
src: "{{ zuul_file_zuul_merger_service_src }}"
|
|
|
|
- name: Copy zuul-server service into place.
|
|
copy:
|
|
dest: "{{ zuul_file_zuul_server_service_dest }}"
|
|
group: "{{ zuul_file_zuul_server_service_group }}"
|
|
mode: "{{ zuul_file_zuul_server_service_mode }}"
|
|
owner: "{{ zuul_file_zuul_server_service_owner }}"
|
|
src: "{{ zuul_file_zuul_server_service_src }}"
|
|
|
|
- name: Enable zuul-merger service.
|
|
service:
|
|
enabled: "{{ zuul_service_zuul_merger_enabled }}"
|
|
name: "{{ zuul_service_zuul_merger_name }}"
|
|
state: "{{ zuul_service_zuul_merger_state }}"
|
|
register: __zuul_merger_service
|
|
when: zuul_service_zuul_merger_manage
|
|
|
|
- name: Enable zuul-server service.
|
|
service:
|
|
enabled: "{{ zuul_service_zuul_server_enabled }}"
|
|
name: "{{ zuul_service_zuul_server_name }}"
|
|
state: "{{ zuul_service_zuul_server_state }}"
|
|
register: __zuul_server_service
|
|
when: zuul_service_zuul_server_manage
|