diff --git a/data/common/common.yaml b/data/common/common.yaml --- a/data/common/common.yaml +++ b/data/common/common.yaml @@ -1512,6 +1512,10 @@ cls: remote url: "http://localhost:%{hiera('swh::remote_service::search::port')}/" +swh::remote_service::search::config::search1: + cls: remote + url: "http://search1.internal.softwareheritage.org:%{hiera('swh::remote_service::search::port')}/" + swh::remote_service::search::config: "%{alias('swh::remote_service::search::config::empty')}" # Indexer backend configurations diff --git a/data/hostname/search1.internal.softwareheritage.org.yaml b/data/hostname/search1.internal.softwareheritage.org.yaml --- a/data/hostname/search1.internal.softwareheritage.org.yaml +++ b/data/hostname/search1.internal.softwareheritage.org.yaml @@ -7,3 +7,5 @@ port: 9200 - host: search-esnode3.internal.softwareheritage.org port: 9200 + +swh::deploy::search::backend::listen::host: 0.0.0.0 diff --git a/data/hostname/webapp1.internal.softwareheritage.org.yaml b/data/hostname/webapp1.internal.softwareheritage.org.yaml --- a/data/hostname/webapp1.internal.softwareheritage.org.yaml +++ b/data/hostname/webapp1.internal.softwareheritage.org.yaml @@ -15,18 +15,13 @@ swh::elasticsearch::nodes: - host: search-esnode0.internal.staging.swh.network port: 9200 -## End of search / staging specific configuration +## End of search / staging specific configuration swh::remote_service::storage::config: "%{alias('swh::remote_service::storage::config::saam')}" swh::remote_service::search::config: "%{alias('swh::remote_service::search::config::localhost')}" swh::deploy::reverse_proxy::services: - webapp - -swh::deploy::search::backend::listen::host: 127.0.0.1 + swh::deploy::search::config: - search: - cls: elasticsearch - args: - hosts: "%{alias('swh::elasticsearch::nodes')}" - index_prefix: production + search: "%{alias('swh::remote_service::search::config::search1')}"