Differentiate fedmsg setup for cloud and non-cloud hosts.
This commit is contained in:
parent
4649864bb3
commit
20e80ff073
2 changed files with 35 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
||||||
# Our handlers in handlers/restart_services.yml are smart enough to
|
# Our handlers in handlers/restart_services.yml are smart enough to
|
||||||
# *conditionally* restart these services, only if they are installed on the
|
# *conditionally* restart these services, only if they are installed on the
|
||||||
# system.
|
# system.
|
||||||
- name: setup basic /etc/fedmsg.d/ contents
|
- name: setup basic /etc/fedmsg.d/ contents for internal hosts
|
||||||
template: >
|
template: >
|
||||||
src="{{ item }}.j2"
|
src="{{ item }}.j2"
|
||||||
dest="/etc/fedmsg.d/{{ item }}"
|
dest="/etc/fedmsg.d/{{ item }}"
|
||||||
|
@ -64,6 +64,32 @@
|
||||||
- pkgdb.py
|
- pkgdb.py
|
||||||
- logging.py
|
- logging.py
|
||||||
- base.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:
|
tags:
|
||||||
- config
|
- config
|
||||||
- fedmsgdconfig
|
- 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",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue