Differentiate fedmsg setup for cloud and non-cloud hosts.

This commit is contained in:
Ralph Bean 2014-10-09 19:06:56 +00:00
parent 4649864bb3
commit 20e80ff073
2 changed files with 35 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1,8 @@
config = dict(
endpoints = {
"fedora-infrastructure": [
"tcp://hub.fedoraproject.org:9940",
],
}
)