forked from brianehlert/ansible-nginx-controller-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx_controller_integration.yaml
30 lines (27 loc) · 1.01 KB
/
nginx_controller_integration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
# ansible-playbook nginx_controller_integration.yaml -i controller -e "[email protected] nginx_controller_password=userPassword"
# manage integrations in nginx Controller
- hosts: localhost
tasks:
- name: Retrieve the NGINX Controller auth token
include_role:
name: nginxinc.nginx_controller_generate_token
# Define one user account
- name: Configure the integration
include_role:
name: nginxinc.nginx_controller_integration
vars:
nginx_controller_integration:
metadata:
name: "splunk-demo"
displayName: "Splunk Demo target"
description: "the endpoint and credential for the Splunk demo"
tags:
- "splunk"
- "demo"
desiredState:
type: "GENERIC_INTEGRATION"
endpointUri: "https://10.1.1.11:8088/services/collector"
credential:
type: "API_KEY"
apiKey: "3eaf1d34-2c2e-400a-be00-97e7a96b04f8"