mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
Differentiate fedmsg setup for cloud and non-cloud hosts.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
# Our handlers in handlers/restart_services.yml are smart enough to
|
||||
# *conditionally* restart these services, only if they are installed on the
|
||||
# system.
|
||||
- name: setup basic /etc/fedmsg.d/ contents
|
||||
- name: setup basic /etc/fedmsg.d/ contents for internal hosts
|
||||
template: >
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/fedmsg.d/{{ item }}"
|
||||
@@ -64,6 +64,32 @@
|
||||
- pkgdb.py
|
||||
- logging.py
|
||||
- base.py
|
||||
when: 'persistent-cloud' not in group_names
|
||||
tags:
|
||||
- config
|
||||
- fedmsgdconfig
|
||||
- fedmsg/base
|
||||
notify:
|
||||
- restart httpd
|
||||
- restart fedmsg-gateway
|
||||
- restart fedmsg-hub
|
||||
- restart fedmsg-irc
|
||||
- restart fedmsg-relay
|
||||
|
||||
- name: setup basic /etc/fedmsg.d/ contents for cloud hosts
|
||||
template: >
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/fedmsg.d/{{ item }}"
|
||||
owner=root
|
||||
group=root
|
||||
mode=644
|
||||
with_items:
|
||||
- ssl.py
|
||||
- endpoints-external.py
|
||||
- relay.py
|
||||
- logging.py
|
||||
- base.py
|
||||
when: 'persistent-cloud' in group_names
|
||||
tags:
|
||||
- config
|
||||
- fedmsgdconfig
|
||||
|
||||
8
roles/fedmsg/base/templates/endpoints-external.py.j2
Normal file
8
roles/fedmsg/base/templates/endpoints-external.py.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
config = dict(
|
||||
endpoints = {
|
||||
"fedora-infrastructure": [
|
||||
"tcp://hub.fedoraproject.org:9940",
|
||||
],
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user