copr-be: invent copr_backend_target
.. temporarily, till copr-be and copr-be-dev aren't synced on the updated version of copr-backend package.
This commit is contained in:
parent
2ac3a6081c
commit
ac8100aea9
4 changed files with 8 additions and 2 deletions
|
@ -66,3 +66,6 @@ nagios_Check_Services:
|
|||
swap: false
|
||||
|
||||
# There is no python2 on F30
|
||||
|
||||
# what is the main backend service name
|
||||
copr_backend_target: copr-backend.service
|
||||
|
|
|
@ -63,3 +63,6 @@ copr_hostbase: copr-be-dev
|
|||
_copr_be_conf: copr-be.conf-dev
|
||||
|
||||
datacenter: aws
|
||||
|
||||
# what is the main backend service name
|
||||
copr_backend_target: copr-backend.target
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
file: path=/etc/lighttpd/copr-be.fedoraproject.org.pem owner=root group=root mode=0600
|
||||
|
||||
- name: restart copr-backend
|
||||
service: name=copr-backend state=restarted
|
||||
service: name="{{ copr_backend_target }} state=restarted
|
||||
when: not services_disabled
|
||||
|
||||
- name: systemctl daemon-reload
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
when: not services_disabled|bool
|
||||
with_items:
|
||||
- redis # TODO: .service in copr-backend should depend on redis
|
||||
- copr-backend
|
||||
- "{{ copr_backend_target }}"
|
||||
|
||||
- name: install aws cleaning script
|
||||
copy: src="cleanup-vms-aws" dest=/usr/local/bin/ mode=755
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue