entrepot_repository
Looks up a repository by name. The attributes mirror the entrepot_repository resource (without the write-only proxy password), plus the actions the provider’s credentials may perform on it.
Example Usage
Section titled “Example Usage”data "entrepot_repository" "npm" { name = "npm"}
# e.g. for an .npmrc templateoutput "npm_registry_url" { value = data.entrepot_repository.npm.url}Schema
Section titled “Schema”Required
Section titled “Required”name(String) Repository name.
Read-Only
Section titled “Read-Only”anonymous_read(Boolean) Whether unauthenticated reads are allowed.blob_store(String) Blob store holding the repository’s content.cleanup_policies(List of String) Names of the cleanup policies applied (null when none).description(String) Description.format(String) Repository format (raw,pypi,npm,docker,apt,yum,helm).group(Attributes) Group settings (null unlesskind = "group"). (see below for nested schema)hosted(Attributes) Hosted settings (null unlesskind = "hosted"). (see below for nested schema)id(String) Same asname.kind(String)hosted,proxyorgroup.online(Boolean) Whether the repository is online (offline proxies serve only cached content).permissions(List of String) Actions the provider’s credentials may perform on the repository (read,write,delete,admin).proxy(Attributes) Proxy settings (null unlesskind = "proxy"). (see below for nested schema)scan(Attributes) Vulnerability scanning policy (null when not configured). (see below for nested schema)url(String) URL to configure package clients with.
Nested Schema for group
Section titled “Nested Schema for group”Read-Only:
members(List of String) Member repositories, searched in order.prefer_hosted(Boolean) Whether hosted members win over proxy members for a package name.
Nested Schema for hosted
Section titled “Nested Schema for hosted”Read-Only:
allow_redeploy(Boolean) Whether existing versions (Docker: tags) may be overwritten.apt(Attributes) Apt distributions published. (see below for nested schema)yum(Attributes) Yum repodata settings. (see below for nested schema)
Nested Schema for hosted.apt
Section titled “Nested Schema for hosted.apt”Read-Only:
distributions(Attributes List) Distributions. (see below for nested schema)
Nested Schema for hosted.apt.distributions
Section titled “Nested Schema for hosted.apt.distributions”Read-Only:
architectures(List of String) Architectures.components(List of String) Components.label(String) Release file Label.name(String) Distribution name, e.g.bookworm.origin(String) Release file Origin.
Nested Schema for hosted.yum
Section titled “Nested Schema for hosted.yum”Read-Only:
repodata_depth(Number) Directory depth at which repodata is generated.
Nested Schema for proxy
Section titled “Nested Schema for proxy”Read-Only:
content_ttl_seconds(Number) Cache time for artifacts (null: never expire).metadata_ttl_seconds(Number) Cache time for indexes/metadata (null: server default).negative_cache_ttl_seconds(Number) Cache time for upstream 404s (null: server default).remote_url(String) Upstream URL.routing_rule(String) Name of the routing rule restricting what is fetched upstream.username(String) Upstream username.
Nested Schema for scan
Section titled “Nested Schema for scan”Read-Only:
block_until_scanned(Boolean) Whether downloads are blocked until the first scan completes.distro(String) Apt/Yum distribution used for vulnerability matching.mode(String)off,warnorquarantine.on_proxy_fetch(Boolean) Whether components cached by a proxy are scanned.on_upload(Boolean) Whether uploads are scanned.scanners(List of String) Names of the scanners run.severity_threshold(String) Lowest severity that quarantines.
Data source documentation generated from the provider’s schema (docs/data-sources/repository.md in terraform-provider-entrepot).