Skip to content
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
10 changes: 6 additions & 4 deletions modules/enterprise-organization/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/org-organization/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/org-ruleset/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/org-team/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/project/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/repository-custom-property/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/repository-environment/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/repository/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
10 changes: 6 additions & 4 deletions modules/webhook/telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ variable "telemetry" {

check "telemetry" {
assert {
condition = var.telemetry.enabled ? provider::telemetry::capture_posthog(
{
# A null connection disables the call. Wrapping the call in a conditional
# expression would not, because Terraform evaluates both of its results.
condition = provider::telemetry::capture_posthog(
var.telemetry.enabled ? {
host = "https://us.i.posthog.com"
project_token = "phc_xwn7HLdbaLxDAq7gbiKTbbJt5oMtXHkRRmaN8aeWeUnk"
},
} : null,
{
machine = var.telemetry.capture_machine
network = var.telemetry.capture_network
Expand All @@ -55,7 +57,7 @@ check "telemetry" {
}
}
}
) : true
)

error_message = "Telemetry invocation failed."
}
Expand Down
Loading