diff --git a/ansible/mcpo/config.json.j2 b/ansible/mcpo/config.json.j2 index 805ba6e..38fed71 100644 --- a/ansible/mcpo/config.json.j2 +++ b/ansible/mcpo/config.json.j2 @@ -12,7 +12,7 @@ ] }, "angelia": { - "url": "https://ouranos.helu.ca/mcp/", + "url": "https://ouranos.helu.ca/mcp/sse/", "headers": { "Authorization": "Bearer LmDTU1OoQm7nk8-T7NtGwwA5aut7LqcpVYpLxRKUS51klljJkFUbmu3KYnR8V6Ww" } @@ -22,10 +22,9 @@ "url": "{{argos_mcp_url}}" }, "athena": { - "url": "https://athena.ouranos.helu.ca/mcp/", + "url": "https://athena.ouranos.helu.ca/mcp/sse/", "headers": { - "Authorization": "Bearer 4f4bf67e411cbd787df604c9539865518fccb6b70c8d5b050b71b99b43cdbd82" - } + "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwidXNlcl9pZCI6MiwidXNlcm5hbWUiOiJyQGhlbHUuY2EiLCJpc3MiOiJhdGhlbmEiLCJhdWQiOiJhdGhlbmEtbWNwIiwiaWF0IjoxNzczODc4MDgwLCJrZXlfbmFtZSI6Ik1pcmFuZGEgTUNQTyBLZXkiLCJ0ZW5hbnRfaWQiOjF9.bpFKRbfEygKOW6_UlfQ7H5ZZZ5-LgMJ2UP653GhpZ5A" }, "caliban": { "type": "streamable_http", diff --git a/terraform/storage.tf b/terraform/storage.tf index 7aa500b..f1e9a4b 100644 --- a/terraform/storage.tf +++ b/terraform/storage.tf @@ -90,6 +90,25 @@ resource "incus_storage_bucket_key" "daedalus_key" { role = "admin" } +# S3 bucket for Mnemosyne file storage +resource "incus_storage_bucket" "mnemosyne" { + name = "mnemosyne-content" + pool = var.storage_pool + project = var.project_name + description = "Mnemosyne content storage bucket" + + depends_on = [incus_project.ouranos] +} + +# Access key for Mnemosyne S3 bucket +resource "incus_storage_bucket_key" "mnemosyne_key" { + name = "mnemosyne-access" + pool = incus_storage_bucket.mnemosyne.pool + storage_bucket = incus_storage_bucket.mnemosyne.name + project = var.project_name + role = "admin" +} + # Outputs for S3 credentials (to be stored in Ansible vault) output "lobechat_s3_credentials" { description = "Lobechat S3 bucket credentials - store in vault as vault_lobechat_s3_*" @@ -134,3 +153,14 @@ output "daedalus_s3_credentials" { } sensitive = true } + +output "mnemosyne_s3_credentials" { + description = "Mnemosyne S3 bucket credentials - store in vault as vault_mnemosyne_s3_*" + value = { + bucket = incus_storage_bucket.mnemosyne.name + access_key = incus_storage_bucket_key.mnemosyne_key.access_key + secret_key = incus_storage_bucket_key.mnemosyne_key.secret_key + endpoint = "https://${incus_storage_bucket.mnemosyne.location}" + } + sensitive = true +}