159 lines
3.7 KiB
TOML
159 lines
3.7 KiB
TOML
# A sample configuration for fedora-messaging. This file is in the TOML format.
|
|
amqp_url = "amqp://"
|
|
callback = "fedora_image_uploader:Uploader"
|
|
passive_declares = false
|
|
publish_exchange = "amq.topic"
|
|
topic_prefix = ""
|
|
|
|
[tls]
|
|
ca_cert = "/etc/fedora-messaging/cacert.pem"
|
|
keyfile = "/etc/fedora-messaging/fedora-key.pem"
|
|
certfile = "/etc/fedora-messaging/fedora-cert.pem"
|
|
|
|
[client_properties]
|
|
app = "Fedora Image Uploader"
|
|
app_url = "https://pagure.io/cloud-image-uploader"
|
|
app_contacts_email = "cloud@lists.fedoraproject.org"
|
|
|
|
# If the exchange or queue name has a "." in it, use quotes as seen here.
|
|
[exchanges."amq.topic"]
|
|
type = "topic"
|
|
durable = true
|
|
auto_delete = false
|
|
arguments = {}
|
|
|
|
[queues.my_queue]
|
|
durable = true
|
|
auto_delete = false
|
|
exclusive = false
|
|
arguments = {}
|
|
|
|
# Note the double brackets below. To add another binding, add another
|
|
# [[bindings]] section. To use multiple routing keys, just expand the list here.
|
|
[[bindings]]
|
|
queue = "my_queue"
|
|
exchange = "amq.topic"
|
|
routing_keys = ["org.fedoraproject.*.pungi.compose.status.change"]
|
|
|
|
|
|
[consumer_config.azure]
|
|
location = "eastus"
|
|
resource_group_name = "fedora-test"
|
|
gallery_name = "Fedora"
|
|
gallery_description = "The Fedora compute gallery."
|
|
storage_account_name = "fedoraimageuploads"
|
|
storage_container_name = "vhds"
|
|
|
|
[[consumer_config.azure.target_regions]]
|
|
name = "eastus"
|
|
regional_replica_count = 1
|
|
storage_account_type = "Standard_LRS"
|
|
|
|
[[consumer_config.azure.target_regions]]
|
|
name = "centralus"
|
|
regional_replica_count = 2
|
|
storage_account_type = "Standard_LRS"
|
|
|
|
|
|
[consumer_config.container]
|
|
|
|
[consumer_config.container.repos]
|
|
Container_Toolbox = "fedora-toolbox"
|
|
Container_Minimal_Base = "fedora-minimal"
|
|
Container_Base = "fedora"
|
|
BaseOS = "eln"
|
|
Silverblue = "fedora-silverblue"
|
|
Kinoite = "fedora-kinoite"
|
|
Onyx = "fedora-onyx"
|
|
Sericea = "fedora-sericea"
|
|
bootc = "fedora-bootc"
|
|
IoT_bootc_base = "fedora-iot"
|
|
|
|
[[consumer_config.container.registries]]
|
|
url = "registry.fedoraproject.org"
|
|
credential_prefix = "FEDORA_REGISTRY_"
|
|
|
|
[[consumer_config.container.registries]]
|
|
url = "quay.io/fedora"
|
|
credential_prefix = "QUAY_IO_"
|
|
|
|
|
|
[consumer_config.aws]
|
|
base_region = "us-east-1"
|
|
s3_bucket_name = "fedora-image-uploads"
|
|
ami_volume_dev_name = "/dev/sda1"
|
|
ami_volume_type = "gp3"
|
|
ami_regions = [
|
|
"af-south-1",
|
|
"eu-north-1",
|
|
"ap-south-1",
|
|
"eu-west-3",
|
|
"eu-west-2",
|
|
"eu-south-1",
|
|
"eu-west-1",
|
|
"ap-northeast-3",
|
|
"ap-northeast-2",
|
|
"me-south-1",
|
|
"ap-northeast-1",
|
|
"sa-east-1",
|
|
"ca-central-1",
|
|
"ap-east-1",
|
|
"ap-southeast-1",
|
|
"ap-southeast-2",
|
|
"ap-southeast-3",
|
|
"eu-central-1",
|
|
"us-east-1",
|
|
"us-east-2",
|
|
"us-west-1",
|
|
"us-west-2",
|
|
]
|
|
|
|
|
|
[consumer_config.gcp]
|
|
project = "fedora-cloud-devel"
|
|
bucket_name = "fedora-cloud-image-upload-devel"
|
|
storage_locations = ["us"]
|
|
|
|
[qos]
|
|
prefetch_size = 0
|
|
prefetch_count = 25
|
|
|
|
[log_config]
|
|
version = 1
|
|
disable_existing_loggers = true
|
|
|
|
[log_config.formatters.simple]
|
|
format = "[%(levelname)s %(name)s] %(message)s"
|
|
|
|
[log_config.handlers.console]
|
|
class = "logging.StreamHandler"
|
|
formatter = "simple"
|
|
stream = "ext://sys.stdout"
|
|
|
|
[log_config.loggers.fedora_image_uploader]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[log_config.loggers.fedora_messaging]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
# Twisted is the asynchronous framework that manages the TCP/TLS connection, as well
|
|
# as the consumer event loop. When debugging you may want to lower this log level.
|
|
[log_config.loggers.twisted]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
# Pika is the underlying AMQP client library. When debugging you may want to
|
|
# lower this log level.
|
|
[log_config.loggers.pika]
|
|
level = "WARNING"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[log_config.root]
|
|
level = "ERROR"
|
|
handlers = ["console"]
|