Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sharing repositories between projects #80

Closed
damacus opened this issue Feb 2, 2023 · 5 comments · Fixed by #147
Closed

Support sharing repositories between projects #80

damacus opened this issue Feb 2, 2023 · 5 comments · Fixed by #147
Assignees
Labels
enhancement New feature or request

Comments

@damacus
Copy link

damacus commented Feb 2, 2023

Is your feature request related to a problem? Please describe.

It is currently only possible to share a central repository with new projects via the UI. This is slow and prone to error when there are 100+ projects within the organisation.

Describe the solution you'd like

resource "artifactory_remote_alpine_repository" "my-remote-alpine" {
  key = "my-remote-alpine"
  url = "http://dl-cdn.alpinelinux.org/alpine"
}

resource "project" "myproject" {
  key          = "myproj"
  display_name = "My Project"
  description  = "My Project"
}

resource "artifactory_share_repository" "my-remote-alpine" {
  repo_name          = artifactory_remote_alpine_repository.my-remote-alpine.name
  target_project_key =  project.myproject.key
}

Describe alternatives you've considered

Additional context

Share Repository with Target Project API

@danielmkn danielmkn self-assigned this Feb 2, 2023
@danielmkn danielmkn added enhancement New feature or request blocked labels Feb 9, 2023
@danielmkn
Copy link
Collaborator

danielmkn commented Feb 9, 2023

Hi @damacus, we currently can't implement it, because there is no public API to gather the information about which project/projects the repository is shared with. The ticket was created for the Artifactory team.
Also, please create a support ticket and mention internal tickets RTDEV-29940 and PTRENG-4899.

@alexhung alexhung transferred this issue from jfrog/terraform-provider-artifactory Aug 25, 2023
@shurikg
Copy link

shurikg commented Feb 14, 2024

The target_project_key needs to be a list.

It can be a situation in which I want to share the repo for multiple projects.

@alexhung alexhung removed the blocked label Jul 22, 2024
@alexhung
Copy link
Member

@damacus @shurikg The upcoming Artifactory v7.90.x will have API support to implement this feature.

@damacus
Copy link
Author

damacus commented Jul 22, 2024

Thanks!

@alexhung
Copy link
Member

@shurikg For multiple projects, you can use Terraform for expression to create multiple resources.

@alexhung alexhung assigned alexhung and unassigned danielmkn Jul 23, 2024
alexhung added a commit that referenced this issue Jul 24, 2024
Add resources for sharing repos with projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants