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

Add opennebula_marketplace resource and datasource #414

Closed
frousselet opened this issue Feb 21, 2023 · 2 comments · Fixed by #438
Closed

Add opennebula_marketplace resource and datasource #414

frousselet opened this issue Feb 21, 2023 · 2 comments · Fixed by #438

Comments

@frousselet
Copy link
Collaborator

frousselet commented Feb 21, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add opennebula_marketplace resource and datasource

New or Affected Resource(s)

  • resource opennebula_marketplace
  • data source opennebula_marketplace

Potential Terraform Configuration

resource "opennebula_marketplace" "example" {
  name = "Example"
  description = "This is an example"

  ## Backends
  ## All backends conflict with each others
  #####

  # Example of a OpenNebula.org Marketplace
  backend_one = {
    endpoint_url = "https://example.org"
  }

  # Example of a OpenNebula.org Marketplace
  backend_http = {
    endpoint_url        = "https://example.org"
    path                = "/test"
    storage_bridge_list = ""
  }

  # Example of a S3 Marketplace
  backend_s3 = {
    type              = "AWS" # Or "CEPH"                          # Mandatory
    endpoint_url      = "https://example.org"                      # Mandatory
    access_key_id     = "AKIAIOSFODNN7EXAMPLE"                     # Mandatory
    secret_access_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" # Mandatory
    bucket            = "test"                                     # Mandatory
    aws_region        = "eu-west-1"                                # Mandatory if type = "AWS"
    total_size        = 10240 # MB                                 # Mandatory
    read_block_length = 64 # MB                                    # Default to 32
  }

  # Example of a LinuxContainers.org Marketplace
  backend_lxc = {
    endpoint_url                 = "https://example.org"
    roofs_image_size             = 1024 # MB
    filesystem                   = ""
    image_block_file_format      = ""
    show_only_autocontextualized = false
  }

  # Example of a TurnkeyLinux Marketplace
  backend_turnkey = {}

  # Example of a DockerHub Marketplace
  backend_dockerhub = {}

  template_section {
    name = "example"
    elements = {
      key1 = "value1"
    }
  }
}

data "opennebula_marketplace" "by_id" {
  id = 100
}

data "opennebula_marketplace" "by_name" {
  name = "example"
}

References

none

@treywelsh
Copy link
Collaborator

treywelsh commented Mar 6, 2023

Marketplace documentation for one 6.2:

treywelsh added a commit that referenced this issue Apr 12, 2023
treywelsh added a commit that referenced this issue Apr 14, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
treywelsh added a commit that referenced this issue Apr 18, 2023
@frousselet frousselet modified the milestones: 1.3.0, 1.4.0 Jul 12, 2023
@TGM
Copy link

TGM commented Aug 8, 2023

Looking forward for this feature. :)

treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
treywelsh added a commit that referenced this issue Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants