Add an upgrade playbook for tagger.

This commit is contained in:
Ralph Bean
2015-06-20 02:44:40 +00:00
parent 63e86ebfc9
commit 7353deca12
3 changed files with 122 additions and 1 deletions

View File

@@ -42,7 +42,7 @@
dest=/etc/fedoratagger/fedoratagger.cfg
owner=apache
group=apache
mode=0600
mode=0640
tags:
- config
- tagger
@@ -62,6 +62,17 @@
notify:
- restart apache
- name: copy tagger alembic config
template: >
src=alembic.ini
dest=/usr/share/fedoratagger/alembic.ini
owner=apache
group=apache
mode=0640
tags:
- config
- tagger
- name: Set some selinux booleans
seboolean: name={{item}} persistent=yes state=yes
with_items:

View File

@@ -0,0 +1,53 @@
# A generic, single database configuration.
[alembic]
# path to migration scripts
script_location = alembic
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
# max length of characters to apply to the
# "slug" field
#truncate_slug_length = 40
# set to 'true' to run the environment during
# the 'revision' command, regardless of autogenerate
# revision_environment = false
sqlalchemy.url = postgresql://fedoratagger:{{taggerDBPassword}}@tagger_db/fedoratagger
# Logging configuration
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S