exoscale marketplace listing tweaks
This commit is contained in:
parent
60de2e547a
commit
470887c34e
1 changed files with 18 additions and 5 deletions
|
@ -173,15 +173,28 @@ def generate_exoscale_marketplace_yaml(offering):
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
# Build YAML structure
|
# Build YAML structure
|
||||||
|
service_name = offering.service.name
|
||||||
|
|
||||||
|
# List of service names that should have "Enterprise" appended
|
||||||
|
# This concerns all services which are already available on Exoscale Marketplace or DBaaS for differentiation
|
||||||
|
# A workaround because we don't particularly have "Enterprise" services yet
|
||||||
|
enterprise_services = ["GitLab", "PostgreSQL"]
|
||||||
|
|
||||||
|
if any(
|
||||||
|
enterprise_service in service_name for enterprise_service in enterprise_services
|
||||||
|
):
|
||||||
|
service_name += " Enterprise"
|
||||||
|
|
||||||
|
title = f"{service_name} by Servala"
|
||||||
yaml_structure = {
|
yaml_structure = {
|
||||||
yaml_key: {
|
yaml_key: {
|
||||||
"page_class": "tmpl-marketplace-product",
|
"page_class": "tmpl-marketplace-product",
|
||||||
"html_title": f"Managed {offering.service.name} by VSHN via Servala",
|
"html_title": title,
|
||||||
"meta_desc": "Servala is the Open Cloud Native Service Hub. It connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.",
|
"meta_desc": f"Managed {offering.service.name} by Servala - a product by VSHN. Servala is the Open Cloud Native Service Hub. It connects businesses, developers, and cloud service providers on one unique hub with secure, scalable, and easy-to-use cloud-native services.",
|
||||||
"page_header_title": f"Managed {offering.service.name} by VSHN via Servala",
|
"page_header_title": title,
|
||||||
"provider_key": "vshn",
|
"provider_key": "vshn",
|
||||||
"slug": f"servala-managed-{offering.service.slug}",
|
"slug": f"{offering.service.slug}-by-servala",
|
||||||
"title": f"Managed {offering.service.name} by VSHN via Servala",
|
"title": title,
|
||||||
"logo": f"img/servala-{offering.service.slug}.svg",
|
"logo": f"img/servala-{offering.service.slug}.svg",
|
||||||
"list_display": [],
|
"list_display": [],
|
||||||
"meta": [
|
"meta": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue