Websocket server config.

This commit is contained in:
Ralph Bean 2014-07-17 01:40:44 +00:00
parent 9877feee45
commit 4464657024
5 changed files with 19 additions and 2 deletions

View file

@ -11,6 +11,7 @@ tcp_ports: [
3999, # The fedmsg-relay republishes here. Listeners need to connect.
9941, # The fedmsg-relay listens here. Ephemeral producers connect.
9940, # The fedmsg-gateway republishes here. Proxies need to connect.
9919, # The websocket server publishes here. Proxies need to connect.
]
fas_client_groups: sysadmin-noc,sysadmin-datanommer

View file

@ -11,6 +11,7 @@ tcp_ports: [
3999, # The fedmsg-relay republishes here. Listeners need to connect.
9941, # The fedmsg-relay listens here. Ephemeral producers connect.
9940, # The fedmsg-gateway republishes here. Proxies need to connect.
9919, # The websocket server publishes here. Proxies need to connect.
]
fas_client_groups: sysadmin-noc,sysadmin-datanommer

View file

@ -52,8 +52,9 @@
accelerate: "{{ accelerated }}"
roles:
- fedmsg/hub
- fedmsg/datanommer
- role: fedmsg/hub
enable_websocket_server: True
#- fedmsg/datanommer
- fedmsg/relay
- fedmsg/gateway
- role: collectd/fedmsg-service

View file

@ -0,0 +1,6 @@
config = {
# The presence of this will cause fedmsg-hub to start its own websocket
# server along with it.
'moksha.livesocket.websocket.port': 9919,
}

View file

@ -10,3 +10,11 @@
- name: fedmsg-hub service
service: name=fedmsg-hub state=started enabled=yes
- name: enable the websocket server if we should
copy: src=websockets.py dest=/etc/fedmsg.d/websockets.py
when: enable_websocket_server
- name: disable the websocket server if we should..
file: dest=/etc/fedmsg.d/websockets.py state=absent
when: not enable_websocket_server