Skip to content

Commit

Permalink
added script module linked to project example
Browse files Browse the repository at this point in the history
  • Loading branch information
benPearce1 committed Feb 15, 2024
1 parent a58b130 commit 27ac589
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
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

0 comments on commit 27ac589

Please sign in to comment.