[global]

##
## Bodhi Production Configuration
##
## $Id: bodhi-prod.cfg.erb,v 1.8 2008/05/21 23:38:07 lmacken Exp $
##

# Release status
# pre-beta enforces the 'Pre Beta' policy defined here:
# https://fedoraproject.org/wiki/Updates_Policy
f21.status = 'pre_beta'

f21.post_beta.mandatory_days_in_testing = 7
f21.post_beta.critpath.num_admin_approvals = 0
f21.post_beta.critpath.min_karma = 2
f21.post_beta.critpath.stable_after_days_without_negative_karma = 14

f21.pre_beta.mandatory_days_in_testing = 3
f21.pre_beta.critpath.num_admin_approvals = 0
f21.pre_beta.critpath.min_karma = 1

# Bodhi Defaults:
#
# The number of admin approvals it takes to be able to push a critical path
# # update to stable for a pending release.
# critpath.num_admin_approvals = 0
#
# # The net karma required to submit a critial path update to a pending release)
# critpath.min_karma = 2
#
# # Allow critpath to submit for stable after 2 weeks with no negative karma
# critpath.stable_after_days_without_negative_karma = 14

{% if env == "staging" %}
admin_groups = "packager"
{% endif %}

## A notice to flash on the front page
#frontpage_notice = 'Bodhi is now enforcing the <a href="https://fedoraproject.org/wiki/Package_update_acceptance_criteria">Package Update Acceptance Criteria</a> across all Fedora releases.'

## A notice to flash on the New Update page
#newupdate_notice = 'Koji is currently down for a scheduled outage. Please see <a href="http://status.fedoraproject.org/">status.fedoraproject.org</a> for more information'

# Query the Fedora Package Database for the list of Critical Path Packages.
{% if env == "production" %}
critpath.type = 'pkgdb'
{% endif %}

{% if env == "production" %}
deployment_type = "prod"
{% endif %}
{% if env == "staging" %}
deployment_type = "stg"
{% endif %}
{% if env == "development" %}
deployment_type = "dev"
{% endif %}

# We no longer require proventester karma for critpath approval 
# https://fedorahosted.org/bodhi/ticket/653
critpath.num_admin_approvals = 0

#f17.pre_beta.critpath.num_admin_approvals = 0

query_wiki_test_cases = True

sqlobject.dburi="notrans_postgres://bodhi:{{ bodhiPassword }}@db-bodhi/bodhi"

masher = 'http://releng04/updates'

# For the build auto-complete widget
tg_mochikit.packed = True

server.socket_port=8084
server.environment="production"
autoreload.on = False
server.webpath="/updates"
server.log_file = "server.log"
server.log_to_screen = False
server.thread_pool = 50
server.socket_queue_size = 30

# We probably want to have apache do this for us...
#gzipFilter.on = True

session_filter.on = False
base_url_filter.on = True
base_url_filter.use_x_forwarded_host = False
{% if env == "staging" %}
base_url_filter.base_url = 'https://admin.stg.fedoraproject.org'
{% else %}
base_url_filter.base_url = 'https://admin.fedoraproject.org'
{% endif %}

tg.strict_parameters = True
tg.ignore_parameters = ["_csrf_token"]

# Periodic jobs
jobs = 'cache_release_data'

# FAS2
#sqlalchemy.dburi="sqlite:///"
{% if env == "staging" %}
fas.url = 'https://admin.stg.fedoraproject.org/accounts/'
{% else %}
fas.url = 'https://admin.fedoraproject.org/accounts/'
{% endif %}
identity.provider='jsonfas2'
identity.saprovider.model.visit="fedora.accounts.tgfas.VisitIdentity"
visit.manager="jsonfas2"
visit.saprovider.model="fedora.accounts.tgfas.Visit"
visit.cookie.secure = True
visit.cookie.httponly = True

# Our identity that we use to fetch bugzilla details and such
bodhi_password='{{ bodhiBugzillaPassword }}'
bodhi_email = 'updates@fedoraproject.org'
security_team = 'security_respons-members@fedoraproject.org'
release_team_address = 'bodhiadmin-members@fedoraproject.org'
fedora_announce_list = 'package-announce@lists.fedoraproject.org'
fedora_test_announce_list = 'test@lists.fedoraproject.org'
mashed_dir = '/mnt/koji/mash/updates'
# TurboMail 3.0 settings
{% if env == "staging" %}
mail.on = False
{% else %}
mail.on = True
{% endif %}
mail.transport = 'smtp'
mail.smtp.server = 'bastion'
# The 'utf-8-qp' encoding causes problems with TurboMail 3.x
# https://fedorahosted.org/bodhi/ticket/648
mail.message.encoding = 'utf-8'
notice_sender = 'updates@fedoraproject.org'
{% if env == "staging" %}
bz_server = 'https://partner-bugzilla.redhat.com/xmlrpc.cgi'
{% else %}
bz_server = 'https://bugzilla.redhat.com/xmlrpc.cgi'
{% endif %}
# Don't store cookies and tokens persistently on disk
#bz_cookie = '/var/tmp/bodhi-bz.cookie'
#bz_token = None
bz_products = 'Fedora,Fedora EPEL,oVirt'

build_dir = '/mnt/koji/packages'
{% if env == "staging" %}
base_address = 'https://admin.stg.fedoraproject.org'
{% else %}
base_address = 'https://admin.fedoraproject.org'
{% endif %}

acl_system = 'pkgdb'
{% if env == "staging" %}
pkgdb_url = 'https://admin.stg.fedoraproject.org/pkgdb'
{% else %}
pkgdb_url = 'https://admin.fedoraproject.org/pkgdb'
{% endif %}

buildsystem = 'koji'
{% if env == "staging" %}
koji_hub = 'https://10.5.126.87/kojihub'
koji_url = 'http://10.5.126.87'
{% endif %}
client_cert = '/etc/pki/bodhi/bodhi.pem'
clientca_cert = '/etc/pki/bodhi/fedora-upload-ca.cert'
serverca_cert = '/etc/pki/bodhi/fedora-server-ca.cert'

[logging]

[[handlers]]

[[[syslog_out]]]
class='handlers.SysLogHandler'
level='DEBUG'
args="('/dev/log', handlers.SysLogHandler.LOG_LOCAL4)"
formatter='full_content'

[[loggers]]
[[[bodhi]]]
level='DEBUG'
qualname='bodhi'
handlers=['syslog_out']
propagate=0

[[[allinfo]]]
level='INFO'
handlers=['syslog_out']
propagate=0

[[[turbomail]]]
level='INFO'
qualname='turbomail'
handlers=['syslog_out']

[[[urllib3]]]
level='WARN'
qualname='urllib3'
handlers=['syslog_out']
