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

added script module linked to project example #604

Merged
merged 1 commit into from
Feb 15, 2024
Merged
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
35 changes: 35 additions & 0 deletions docs/resources/script_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,41 @@ resource "octopusdeploy_script_module" "example" {
}
```

To include the script module in a project:
```terraform
resource "octopusdeploy_project" "example-project" {
auto_create_release = false
default_guided_failure_mode = "EnvironmentDefault"
default_to_skip_if_already_installed = false
description = "The development project."
discrete_channel_release = false
is_disabled = false
is_discrete_channel_release = false
is_version_controlled = false
lifecycle_id = "Lifecycles-342"
name = "Development Project (OK to Delete)"
project_group_id = "ProjectGroups-342"
tenanted_deployment_participation = "TenantedOrUntenanted"
included_library_variable_sets = [octopusdeploy_script_module.example.id]

connectivity_policy {
allow_deployments_to_no_targets = false
exclude_unhealthy_targets = false
skip_machine_behavior = "SkipUnavailableMachines"
}

template {
default_value = "example-default-value"
help_text = "example-help-test"
label = "example-label"
name = "example-template-value"
display_settings = {
"Octopus.ControlType" : "SingleLineText"
}
}
}
```

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

Expand Down
2 changes: 2 additions & 0 deletions examples/resources/octopusdeploy_project/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ resource "octopusdeploy_project" "example" {
name = "Development Project (OK to Delete)"
project_group_id = "ProjectGroups-123"
tenanted_deployment_participation = "TenantedOrUntenanted"
included_library_variable_sets = [ "LibraryVariablesSets-456", "LibraryVariablesSets-789" ]


connectivity_policy {
allow_deployments_to_no_targets = false
Expand Down
Loading