Use this resource to create a group pypi repository.
resource "nexus_repository_pypi_hosted" "internal" {
name = "internal"
online = true
storage {
blob_store_name = "default"
strict_content_type_validation = true
write_policy = "ALLOW"
}
}
resource "nexus_repository_pypi_proxy" "pypi_org" {
name = "pypi-org"
online = true
storage {
blob_store_name = "default"
strict_content_type_validation = true
}
proxy {
remote_url = "https://pypi.org"
content_max_age = 1440
metadata_max_age = 1440
}
negative_cache {
enabled = true
ttl = 1440
}
http_client {
blocked = false
auto_block = true
}
}
resource "nexus_repository_pypi_group" "group" {
name = "pypi-group"
online = true
group {
member_names = [
nexus_repository_pypi_hosted.internal.name,
nexus_repository_pypi_proxy.pypi_org.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 requestsid
(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 format
Import is supported using the following syntax:
# import using the name of repository
terraform import nexus_repository_pypi_group.group pypi-group