Include autocloud config for fedmsg-hub.

This commit is contained in:
Ralph Bean 2015-09-28 18:46:56 +00:00
parent 94ee0ac6fe
commit cecaeec118
2 changed files with 34 additions and 0 deletions

View file

@ -45,6 +45,19 @@
- autocloud
- autocloud/backend
- name: copy autocloud fedmsg configuration
template: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
owner=root group=fedmsg mode=0640
with_items:
- autocloud.py
notify:
- restart fedmsg-hub
- restart autocloud
tags:
- autocloud
- autocloud/backend
- name: install vagrant-libvirt for the libvirt host
dnf: pkg={{ item }} state=present
with_items:

View file

@ -0,0 +1,21 @@
config = {
# Consumer stuff
"autocloud.consumer.enabled": True,
{% if env == 'staging' %}
"autocloud.sqlalchemy.uri": "postgres://autocloud:{{autocloud_db_password_stg}}@db01.stg/autocloud",
{% else %}
"autocloud.sqlalchemy.uri": "postgres://autocloud:{{autocloud_db_password}}@db01/autocloud",
{% endif %}
# Turn on logging for autocloud
"logging": dict(
loggers=dict(
autocloud={
"level": "DEBUG",
"propagate": False,
"handlers": ["console"],
},
),
),
}