-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dillon Giacoppo
committed
Dec 4, 2018
1 parent
f702594
commit 7a6189c
Showing
9 changed files
with
248 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# artifactory_local_repository | ||
|
||
Provides an Artifactory local repository resource. This can be used to create and manage Artifactory local repositories. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# Create a new Artifactory local repository called my-local | ||
resource "artifactory_local_repository" "my-local" { | ||
key = "my-local" | ||
package_type = "npm" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Arguments have a one to one mapping with the [JFrog API](https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON). The following arguments are supported: | ||
|
||
* `key` - (Required) | ||
* `package_type` - (Required) | ||
* `description` - (Optional) | ||
* `notes` - (Optional) | ||
* `includes_pattern` - (Optional) | ||
* `excludes_pattern` - (Optional) | ||
* `repo_layout_ref` - (Optional) | ||
* `handle_releases` - (Optional) | ||
* `handle_snapshots` - (Optional) | ||
* `max_unique_snapshots` - (Optional) | ||
* `debian_trivial_layout` - (Optional) | ||
* `checksum_policy_type` - (Optional) | ||
* `max_unique_tags` - (Optional) | ||
* `snapshot_version_behavior` - (Optional) | ||
* `suppress_pom_consistency_checks` - (Optional) | ||
* `blacked_out` - (Optional) | ||
* `property_sets` - (Optional) | ||
* `archive_browsing_enabled` - (Optional) | ||
* `calculate_yum_metadata` - (Optional) | ||
* `yum_root_depth` - (Optional) | ||
* `docker_api_version` - (Optional) | ||
* `enable_file_lists_indexing` - (Optional) | ||
|
||
## Import | ||
|
||
Local repositories can be imported using their name, e.g. | ||
|
||
``` | ||
$ terraform import artifactory_local_repository.my-local my-local | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# artifactory_remote_repository | ||
|
||
Provides an Artifactory remote repository resource. This can be used to create and manage Artifactory remote repositories. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# Create a new Artifactory remote repository called my-remote | ||
resource "artifactory_remote_repository" "my-remote" { | ||
key = "my-remote" | ||
package_type = "npm" | ||
url = "https://registry.npmjs.org/" | ||
repo_layout_ref = "npm-default" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Arguments have a one to one mapping with the [JFrog API](https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON). The following arguments are supported: | ||
|
||
* `key` - (Required) | ||
* `package_type` - (Required) | ||
* `url` - (Required) | ||
* `description` - (Optional) | ||
* `notes` - (Optional) | ||
* `includes_pattern` - (Optional) | ||
* `excludes_pattern` - (Optional) | ||
* `repo_layout_ref` - (Optional) | ||
* `handle_releases` - (Optional) | ||
* `handle_snapshots` - (Optional) | ||
* `max_unique_snapshots` - (Optional) | ||
* `suppress_pom_consistency_checks` - (Optional) | ||
* `username` - (Optional) | ||
* `password` - (Optional) | ||
* `proxy` - (Optional) | ||
* `hard_fail` - (Optional) | ||
* `offline` - (Optional) | ||
* `blacked_out` - (Optional) | ||
* `store_artifacts_locally` - (Optional) | ||
* `socket_timeout_millis` - (Optional) | ||
* `local_address` - (Optional) | ||
* `retrieval_cache_period_seconds` - (Optional) | ||
* `missed_cache_period_seconds` - (Optional) | ||
* `unused_artifacts_cleanup_period_hours` - (Optional) | ||
* `fetch_jars_eagerly` - (Optional) | ||
* `fetch_sources_eagerly` - (Optional) | ||
* `share_configuration` - (Optional) | ||
* `synchronize_properties` - (Optional) | ||
* `block_mismatching_mime_types` - (Optional) | ||
* `property_sets` - (Optional) | ||
* `allow_any_host_auth` - (Optional) | ||
* `enable_cookie_management` - (Optional) | ||
* `client_tls_certificate` - (Optional) | ||
* `pypi_registry_url` - (Optional) | ||
* `bypass_head_requests` - (Optional) | ||
* `enable_token_authentication` - (Optional) | ||
|
||
|
||
## Import | ||
|
||
Remote repositories can be imported using their name, e.g. | ||
|
||
``` | ||
$ terraform import artifactory_remote_repository.my-remote my-remote | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# artifactory_replication_config | ||
|
||
Provides an Artifactory replication config resource. This can be used to create and manage Artifactory replications. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
# Create a replication between two artifactory local repositories | ||
resource "artifactory_local_repository" "provider_test_source" { | ||
key = "provider_test_source" | ||
package_type = "maven" | ||
} | ||
resource "artifactory_local_repository" "provider_test_dest" { | ||
key = "provider_test_dest" | ||
package_type = "maven" | ||
} | ||
resource "artifactory_replication_config" "foo-rep" { | ||
repo_key = "${artifactory_local_repository.provider_test_source.key}" | ||
cron_exp = "0 0 * * * ?" | ||
enable_event_replication = true | ||
replications = [ | ||
{ | ||
url = "$var.artifactory_url" | ||
username = "$var.artifactory_username" | ||
password = "$var.artifactory_password" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `repo_key` - (Required) | ||
* `cron_exp` - (Required) | ||
* `enable_event_replication` - (Optional) | ||
* `replications` - (Optional) | ||
* `url` - (Required) | ||
* `socket_timeout_millis` - (Optional) | ||
* `username` - (Optional) | ||
* `password` - (Optional) | ||
* `enabled` - (Optional) | ||
* `sync_deletes` - (Optional) | ||
* `sync_properties` - (Optional) | ||
* `sync_statistics` - (Optional) | ||
* `path_prefix` - (Optional) | ||
|
||
## Import | ||
|
||
Replication configs can be imported using their repo key, e.g. | ||
|
||
``` | ||
$ terraform import artifactory_replication_config.foo-rep provider_test_source | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# artifactory_virtual_repository | ||
|
||
Provides an Artifactory virtual repository resource. This can be used to create and manage Artifactory virtual repositories. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "artifactory_local_repository" "bar" { | ||
key = "bar" | ||
package_type = "maven" | ||
} | ||
resource "artifactory_local_repository" "baz" { | ||
key = "baz" | ||
package_type = "maven" | ||
} | ||
resource "artifactory_virtual_repository" "foo" { | ||
key = "foo" | ||
package_type = "maven" | ||
repositories = [ | ||
"${artifactory_local_repository.bar.key}", | ||
"${artifactory_local_repository.baz.key}" | ||
] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
Arguments have a one to one mapping with the [JFrog API](https://www.jfrog.com/confluence/display/RTF/Repository+Configuration+JSON). The following arguments are supported: | ||
|
||
* `key` - (Optional) | ||
* `package_type` - (Optional) | ||
* `repositories` - (Optional) | ||
* `description` - (Optional) | ||
* `notes` - (Optional) | ||
* `includes_pattern` - (Optional) | ||
* `excludes_pattern` - (Optional) | ||
* `debian_trivial_layout` - (Optional) | ||
* `artifactory_requests_can_retrieve_remote_artifacts` - (Optional) | ||
* `key_pair` - (Optional) | ||
* `pom_repository_references_cleanup_policy` - (Optional) | ||
* `default_deployment_repo` - (Optional) | ||
|
||
## Import | ||
|
||
Virtual repositories can be imported using their name, e.g. | ||
|
||
``` | ||
$ terraform import artifactory_virtual_repository.foo foo | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters