✨ Add initial Terraform configuration for Azure and Proxmox resources
This commit is contained in:
20
modules/pip/main.tf
Normal file
20
modules/pip/main.tf
Normal file
@@ -0,0 +1,20 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
http = { }
|
||||
}
|
||||
}
|
||||
|
||||
data "http" "echoip" {
|
||||
url = var.http_url
|
||||
request_headers = var.http_request_headers
|
||||
method = var.http_method
|
||||
|
||||
insecure = core::startswith(var.http_url, "http://")
|
||||
|
||||
lifecycle {
|
||||
postcondition {
|
||||
condition = contains([200,201,204], self.status_code)
|
||||
error_message = "Status code ${self.status_code} indicates request failure."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user