Include autocloud config for fedmsg-hub.
This commit is contained in:
parent
94ee0ac6fe
commit
cecaeec118
2 changed files with 34 additions and 0 deletions
|
@ -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:
|
||||
|
|
21
roles/autocloud/backend/templates/autocloud.py
Normal file
21
roles/autocloud/backend/templates/autocloud.py
Normal 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"],
|
||||
},
|
||||
),
|
||||
),
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue