Skip to content

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.

data "entrepot_repository" "npm" {
name = "npm"
}
# e.g. for an .npmrc template
output "npm_registry_url" {
value = data.entrepot_repository.npm.url
}
  • name (String) Repository name.
  • 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 unless kind = "group"). (see below for nested schema)
  • hosted (Attributes) Hosted settings (null unless kind = "hosted"). (see below for nested schema)
  • id (String) Same as name.
  • kind (String) hosted, proxy or group.
  • 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 unless kind = "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.

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.

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)

Read-Only:

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.

Read-Only:

  • repodata_depth (Number) Directory depth at which repodata is generated.

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.

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, warn or quarantine.
  • 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).