File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
datadog_v2/kickstarter/terraform/gcp Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ resource "google_compute_instance" "datadog-agent-vm"{
1818 zone = var. zone
1919 boot_disk {
2020 initialize_params {
21- image = " ubuntu-os-cloud/ubuntu- 2004-lts "
21+ image = " ubuntu-2004-focal-v20240731 "
2222 }
2323 }
2424
@@ -41,7 +41,7 @@ resource "null_resource" "install_datadog_agent" {
4141
4242 inline = [
4343 " DD_API_KEY=${ var . datadog_api_key } DD_SITE=\" ${ var . datadog_site } \" bash -c \" $(curl -L https://install.datadoghq.com/scripts/install_script_agent7.sh)\" " ,
44- " git clone https://github.com/redis-field-engineering/datadog-integrations-extras " ,
44+ " git clone ${ var . repo } " ,
4545 # install python 3.12
4646 " sudo apt update" ,
4747 " sudo apt install -y software-properties-common" ,
@@ -53,7 +53,7 @@ resource "null_resource" "install_datadog_agent" {
5353 " pip install build" ,
5454 " cd datadog-integrations-extras" ,
5555 # "git checkout redis_enterprise_prometheus",
56- " git checkout v2-metrics-extended " ,
56+ " git checkout ${ var . branch } " ,
5757 " cd ${ var . datadog_integration_name } " ,
5858 " python3.12 -m build --wheel" ,
5959 " sudo datadog-agent integration install -r -w ./dist/datadog_redis_enterprise_prometheus-2.0.1-py3-none-any.whl" ,
Original file line number Diff line number Diff line change @@ -56,3 +56,15 @@ variable "redis_fqdn" {
5656 description = " The fully qualified domain name (FQDN) of the Redis cluster"
5757 type = string
5858}
59+
60+ variable "repo" {
61+ description = " Git repository URL for the Datadog integration"
62+ type = string
63+ default = " https://github.com/DataDog/integrations-extras"
64+ }
65+
66+ variable "branch" {
67+ description = " Git branch to checkout for the Datadog integration"
68+ type = string
69+ default = " master"
70+ }
You can’t perform that action at this time.
0 commit comments