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.
Example Usage
Section titled “Example Usage”# 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}Schema
Section titled “Schema”Required
Section titled “Required”repository(String) Name of a hostedaptoryumrepository.
Read-Only
Section titled “Read-Only”algorithm(String) Key algorithm, e.g.rsa4096ored25519.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 asrepository.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).