From 1ee27db1536ec085fdc3d249aec16bd69a83d73a Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Tue, 22 Feb 2022 13:47:58 +0100 Subject: [PATCH] fixed minio endpoint in config --- config.yaml | 7 +++++-- pyinfra/storage/minio.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.yaml b/config.yaml index d08e641..52ca029 100755 --- a/config.yaml +++ b/config.yaml @@ -17,12 +17,15 @@ rabbitmq: max_attempts: $MAX_ATTEMPTS|3 # Number of times a message may fail before being published to dead letter queue minio: - host: $STORAGE_ENDPOINT|localhost # MinIO host address - port: $STORAGE_PORT|9000 # MinIO host port + endpoint: $STORAGE_ENDPOINT|"127.0.0.1:9000" # MinIO host address user: $STORAGE_KEY|root # MinIO user name password: $STORAGE_SECRET|password # MinIO user password bucket: $STORAGE_BUCKET_NAME|redaction # MinIO bucket +azure_blob_storage: + connection_string: $STORAGE_AZURECONNECTIONSTRING|"DefaultEndpointsProtocol=https;AccountName=iqserdevelopment;AccountKey=4imAbV9PYXaztSOMpIyAClg88bAZCXuXMGJG0GA1eIBpdh2PlnFGoRBnKqLy2YZUSTmZ3wJfC7tzfHtuC6FEhQ==;EndpointSuffix=core.windows.net" + container: $STORAGE_AZURECONTAINERNAME|"pyinfra-test-storage" + service: logging_level: $LOGGING_LEVEL_ROOT|DEBUG # Logging level for service logger name: $SERVICE_NAME|pyinfra-service-v1 # Name of the service in the kubernetes cluster diff --git a/pyinfra/storage/minio.py b/pyinfra/storage/minio.py index 681283d..5f4f4b4 100644 --- a/pyinfra/storage/minio.py +++ b/pyinfra/storage/minio.py @@ -22,7 +22,7 @@ def get_minio_client(access_key=None, secret_key=None) -> Minio: secret_key = CONFIG.minio.password if secret_key is None else secret_key # TODO: secure=True/False? - return Minio(f"{CONFIG.minio.host}:{CONFIG.minio.port}", access_key=access_key, secret_key=secret_key, secure=False) + return Minio(CONFIG.minio.endpoint, access_key=access_key, secret_key=secret_key, secure=False) class MinioHandle(StorageHandle):