mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 17:52:33 +08:00
Install Koschei admin config file
This commit is contained in:
@@ -6,13 +6,16 @@
|
||||
- koschei
|
||||
- packages
|
||||
|
||||
- name: install config.cfg
|
||||
- name: install config files
|
||||
template: >
|
||||
src="config.cfg.j2"
|
||||
dest="/etc/koschei/config.cfg"
|
||||
src="{{ item }}.j2"
|
||||
dest="/etc/koschei/{{ item }}"
|
||||
owner=koschei
|
||||
group=koschei
|
||||
mode=0400
|
||||
with_items:
|
||||
- config.cfg
|
||||
- config-admin.cfg
|
||||
notify:
|
||||
- restart koschei-polling
|
||||
- restart koschei-resolver
|
||||
|
||||
14
roles/koschei/templates/config-admin.cfg.j2
Normal file
14
roles/koschei/templates/config-admin.cfg.j2
Normal file
@@ -0,0 +1,14 @@
|
||||
# Config for operations that require koscheiadmin credentials.
|
||||
# To use this config you need to set env variable:
|
||||
# KOSCHEI_CONFIG=/usr/share/koschei/config.cfg:/etc/koschei/config.cfg:/etc/koschei/config-admin.cfg
|
||||
config = {
|
||||
"database_config": {
|
||||
"username": "koscheiadmin",
|
||||
"password": "{{ koscheiadmin_db_password }}",
|
||||
}
|
||||
}
|
||||
|
||||
# Local Variables:
|
||||
# mode: Python
|
||||
# End:
|
||||
# vi: ft=python
|
||||
Reference in New Issue
Block a user