Use this resource to create a group yum repository.
resource "nexus_repository_yum_hosted" "internal" {
name = "internal"
deploy_policy = "STRICT"
repodata_depth = 4
storage {
blob_store_name = "default"
strict_content_type_validation = true
write_policy = "ALLOW"
}
}
resource "nexus_repository_yum_group" "group" {
name = "yum-group"
online = true
group {
member_names = [
nexus_repository_yum_hosted.internal.name,
]
}
storage {
blob_store_name = "default"
strict_content_type_validation = true
}
}
group
(Block List, Min: 1, Max: 1) Configuration for repository group (see below for nested schema)name
(String) A unique identifier for this repositorystorage
(Block List, Min: 1, Max: 1) The storage configuration of the repository (see below for nested schema)online
(Boolean) Whether this repository accepts incoming requestsyum_signing
(Block List, Max: 1) Contains signing data of repositores (see below for nested schema)id
(String) Used to identify resource at nexusgroup
Required:
member_names
(Set of String) Member repositories namesstorage
Required:
blob_store_name
(String) Blob store used to store repository contentsOptional:
strict_content_type_validation
(Boolean) Whether to validate uploaded content's MIME type appropriate for the repository formatyum_signing
Required:
keypair
(String, Sensitive) PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)Optional:
Import is supported using the following syntax:
# import using the name of repository
terraform import nexus_repository_yum_group.group yum-group