mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
Include autocloud config for fedmsg-hub.
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user