forked from brianehlert/ansible-nginx-controller-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx_controller_forwarder.yaml
32 lines (29 loc) · 1.03 KB
/
nginx_controller_forwarder.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
30
31
---
# ansible-playbook nginx_controller_forwarder.yaml -i controller -e "[email protected] nginx_controller_password=userPassword"
# manage data forwarders 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 forwarder
include_role:
name: nginxinc.nginx_controller_forwarder
vars:
nginx_controller_forwarder:
metadata:
name: "splunk-forwarder"
displayName: "Splunk Production Data Forwarder"
description: "Production data to the Splunk production injestor"
tags:
- "splunk"
- "production"
desiredState:
integrationRef:
ref: "/platform/integrations/splunk-demo"
streams:
-
inputDataType: "metrics"
outputFormat: "splunk"
selector: ""