Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docs/data-sources/local_skills_repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "artifactory_local_skills_repository Data Source - terraform-provider-artifactory"
subcategory: ""
description: |-
Provides a data source for a local skills repository
---

# artifactory_local_skills_repository (Data Source)

Provides a data source for a local skills repository



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `key` (String) A mandatory identifier for the repository that must be unique. Must be 1 - 64 alphanumeric and hyphen characters. It cannot contain spaces or special characters.

### Optional

- `archive_browsing_enabled` (Boolean) When set, you may view content such as HTML or Javadoc files directly from Artifactory.
This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
- `blacked_out` (Boolean) When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
- `cdn_redirect` (Boolean) When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
- `description` (String) Public description.
- `download_direct` (Boolean) When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
- `excludes_pattern` (String) Comma-separated list of artifact patterns to exclude when evaluating artifact requests, in the form of `x/y/**/z/*`. This is a single string of comma-separated values, not a list of strings. By default no artifacts are excluded.
- `includes_pattern` (String) Comma-separated list of artifact patterns to include when evaluating artifact requests in the form of `x/y/**/z/*`. This is a single string of comma-separated values, not a list of strings. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (`**/*`).
- `notes` (String) Internal description.
- `priority_resolution` (Boolean) Setting repositories with priority will cause metadata to be merged only from repositories set with this field
- `project_environments` (Set of String) Before Artifactory 7.53.1, up to 2 values (`DEV` and `PROD`) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
- `project_key` (String) Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- `property_sets` (Set of String) List of property set name
- `repo_layout_ref` (String) Repository layout key for the local repository
- `xray_index` (Boolean) Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.

### Read-Only

- `id` (String) The ID of this resource.
- `package_type` (String)
38 changes: 38 additions & 0 deletions docs/resources/local_skills_repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "artifactory_local_skills_repository Resource - terraform-provider-artifactory"
subcategory: ""
description: |-
Provides a resource to create a Skills repository.
---

# artifactory_local_skills_repository (Resource)

Provides a resource to create a Skills repository.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `key` (String) A mandatory identifier for the repository that must be unique. Must be 1 - 64 alphanumeric and hyphen characters. It cannot contain spaces or special characters.

### Optional

- `archive_browsing_enabled` (Boolean) When set, you may view content such as HTML or Javadoc files directly from Artifactory.
This may not be safe and therefore requires strict content moderation to prevent malicious users from uploading content that may compromise security (e.g., cross-site scripting attacks).
- `blacked_out` (Boolean) When set, the repository does not participate in artifact resolution and new artifacts cannot be deployed.
- `cdn_redirect` (Boolean) When set, download requests to this repository will redirect the client to download the artifact directly from AWS CloudFront. Available in Enterprise+ and Edge licenses only. Default value is 'false'
- `description` (String) Public description.
- `download_direct` (Boolean) When set, download requests to this repository will redirect the client to download the artifact directly from the cloud storage provider. Available in Enterprise+ and Edge licenses only.
- `excludes_pattern` (String) Comma-separated list of artifact patterns to exclude when evaluating artifact requests, in the form of `x/y/**/z/*`. This is a single string of comma-separated values, not a list of strings. By default no artifacts are excluded.
- `includes_pattern` (String) Comma-separated list of artifact patterns to include when evaluating artifact requests in the form of `x/y/**/z/*`. This is a single string of comma-separated values, not a list of strings. When used, only artifacts matching one of the include patterns are served. By default, all artifacts are included (`**/*`).
- `notes` (String) Internal description.
- `priority_resolution` (Boolean) Setting repositories with priority will cause metadata to be merged only from repositories set with this field
- `project_environments` (Set of String) Before Artifactory 7.53.1, up to 2 values (`DEV` and `PROD`) are allowed. From 7.53.1 to 7.107.1, only one value is allowed. From 7.107.1, multiple values are allowed.The attribute should only be used if the repository is already assigned to the existing project. If not, the attribute will be ignored by Artifactory, but will remain in the Terraform state, which will create state drift during the update.
Comment thread
amarkdotdev marked this conversation as resolved.
- `project_key` (String) Project key for assigning this repository to. Must be 2 - 32 lowercase alphanumeric and hyphen characters. When assigning repository to a project, repository key must be prefixed with project key, separated by a dash.
- `property_sets` (Set of String) List of property set name
- `repo_layout_ref` (String) Sets the layout that the repository should use for storing and identifying modules. A recommended layout that corresponds to the package type defined is suggested, and index packages uploaded and calculate metadata accordingly.
- `xray_index` (Boolean) Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via Xray settings.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var PackageTypesLikeGeneric = []string{
repository.PubPackageType,
repository.PuppetPackageType,
repository.PyPiPackageType,
repository.SkillsPackageType,
repository.SwiftPackageType,
repository.TerraformBackendPackageType,
repository.VagrantPackageType,
Expand Down
2 changes: 2 additions & 0 deletions pkg/artifactory/resource/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const (
ReleasebundlesPackageType = "releasebundles"
RPMPackageType = "rpm"
SBTPackageType = "sbt"
SkillsPackageType = "skills"
SwiftPackageType = "swift"
TerraformBackendPackageType = "terraformbackend"
TerraformModulePackageType = "terraform_module"
Expand Down Expand Up @@ -130,6 +131,7 @@ var PackageNameLookup = map[string]string{
PuppetPackageType: "Puppet",
PyPiPackageType: "PyPi",
SBTPackageType: "SBT",
SkillsPackageType: "Skills",
SwiftPackageType: "Swift",
TerraformBackendPackageType: "Terraform Backend",
VagrantPackageType: "Vagrant",
Expand Down
Loading