dcos_package_version

Data Resource: dcos_package_version

Selects a package version from the given catalog repository.

Example Usage

resource "dcos_package_repo" "universe" { }

# Select a package version out of a repository
data "dcos_package_version" "jenkins-latest" {
    repo_url = "${dcos_package_repo.universe.url}"
    name     = "jenkins"
    version  = "latest"
    index    = -1
}

Argument Reference

The following arguments are supported

  • repo_url (Required) the repository URL where to search for the package. This is typically the .url output variable of a dcos_package_repo resource
  • name (Required) the name of the package to resolve in the repository specified.
  • version (Required) the version of the package to resolve (can be latest to resolve the latest available version).
  • spec (Output Only) The package version specification that can be passed down to the .version_spec argument of a dcos_package_config data resource.