Skip to content

entrepot_signing_key

The public signing key of a hosted apt or yum repository, e.g. to install it on hosts (/etc/apt/keyrings/…, rpm --import). The server generates a key the first time one is needed, so reading this data source may create it.

# Distribute a repository's public key to hosts, e.g. with cloud-init.
data "entrepot_signing_key" "apt" {
repository = "apt-internal"
}
locals {
cloud_init_apt = {
apt = {
sources = {
entrepot = {
source = "deb [signed-by=$KEY_FILE] https://entrepot.example.com/repository/apt-internal/ stable main"
key = data.entrepot_signing_key.apt.public_key
}
}
}
}
}
output "apt_key_url" {
value = data.entrepot_signing_key.apt.url
}
  • repository (String) Name of a hosted apt or yum repository.
  • algorithm (String) Key algorithm, e.g. rsa4096 or ed25519.
  • created_at (String) When the active key was imported or generated (RFC 3339).
  • fingerprint (String) Fingerprint (upper-case hex) of the active key.
  • id (String) Same as repository.
  • public_key (String) ASCII-armored OpenPGP public key.
  • url (String) URL from which clients download the public key.

Data source documentation generated from the provider’s schema (docs/data-sources/signing_key.md in terraform-provider-entrepot).