Skip to content

Commit

Permalink
move dp to secret
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcalalang committed Jun 11, 2024
1 parent 80121fe commit f57db6f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ jobs:
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT }}
TF_VAR_nginx_username: ${{ secrets.NGINX_USER }}
TF_VAR_nginx_password: ${{ secrets.NGINX_PASSWORD }}
TF_VAR_nginx_one_dataplane_key: ${{ secrets.NGINX_ONE_DATAPLANE_KEY }}

# Where are the Terraform files
defaults:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Install the NGINX Agent and bind to instance group api
# curl -k https://${nms-hostname}/install/nginx-agent > install.sh && sudo sh install.sh -g azure-api-gateways && sudo systemctl start nginx-agent

curl https://agent.connect.nginx.com/nginx-agent/install | DATA_PLANE_KEY="hsa2dnJ7yW3IdQ70qmPm7fwWhB4dh9ofw3LwsKllttM=" sh -s -- -y
# Add NGINX instance to NGINX One

curl https://agent.connect.nginx.com/nginx-agent/install | DATA_PLANE_KEY="${nginx_one_dataplane_key}" sh -s -- -y

# install nginx modules

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Install the NGINX Agent and bind to instance group api
# curl -k https://${nms-hostname}/install/nginx-agent > install.sh && sudo sh install.sh -g azure-api-gateways && sudo systemctl start nginx-agent

curl https://agent.connect.nginx.com/nginx-agent/install | DATA_PLANE_KEY="hsa2dnJ7yW3IdQ70qmPm7fwWhB4dh9ofw3LwsKllttM=" sh -s -- -y
# Add NGINX instance to NGINX One

curl https://agent.connect.nginx.com/nginx-agent/install | DATA_PLANE_KEY="${nginx_one_dataplane_key}" sh -s -- -y

# install nginx modules

Expand Down
4 changes: 4 additions & 0 deletions nginx/terraform/infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ variable "notification_email" {

# NGINX variables

variable "nginx_one_dataplane_key" {
type = string
description = "NGINX ONE Dataplane Key"
}
variable "nginx-instance-offer" {
type = string
description = "Offer name for NGINX instance resources"
Expand Down

0 comments on commit f57db6f

Please sign in to comment.