-
Notifications
You must be signed in to change notification settings - Fork 111
/
main.yml
151 lines (132 loc) · 4.57 KB
/
main.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
# Install or uninstall packages (package manager installation).
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/package_module.html
nrinfragent_state: "latest"
# newrelic-infra-service startup mode.
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html#parameter-enabled
nrinfragent_service_enabled: "yes"
# newrelic-infra-service startup state.
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/service_module.html#parameter-state
nrinfragent_service_state: "started"
# Custom path to the New Relic Infrastructure agent configuration.
#
# Example:
# nrinfragent_config_file: /opt/nri-agent/nri-config.yml
#nrinfragent_config_file: ""
# newrelic-infra agent configuration settings
# https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/configuration/infrastructure-agent-configuration-settings/
#
# Example:
# custom_attributes:
# business_unit: sales
# team: newrelic
# license_key: D000000000000000000000000000000000000000
# log_file: /tmp/logs.log
# verbose: 1
nrinfragent_config:
license_key: "{{ nrinfragent_license_key | default('YOUR_LICENSE_KEY') }}"
proxy: ""
# A variable to prevent config values from being displayed
nrinfragent_hide_config_values: false
# A variable used to set lock_timeout value for ansible yum module. By default set to 30. Works only for Ansible 2.8+
nrinfragent_yum_lock_timeout: 30
# New Relic Infrastructure OHI packages to install (package manager installation).
# https://docs.newrelic.com/docs/integrations/host-integrations/installation/install-infrastructure-host-integrations/#standard
#
# The list of available integrations can be found [here][1]. Each package should
# provide its `name` and `state`. The integrations package name is located in
# the **Install and activate** section of the
# [individual integrations docs](https://docs.newrelic.com/docs/integrations).
# Asa convention, their name is the name of the service with the `nri-` prefix
# (`nri-apache`, `nri-redis`, etc.).
#
# By default the state it's `absent`, which doesn't install the package; you can
# change it to `latest` or `present`. For example:
# Example:
# nrinfragent_integrations:
# - name: nri-nginx
# state: latest
# - name: nri-mysql
# state: absent
nrinfragent_integrations: []
#
# Tarball Installation Variables
#
# https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-assisted-install-infrastructure-agent-linux/
#
# New Relic Infrastructure agent tarball version to download. (Linux only)
# https://download.newrelic.com/infrastructure_agent/binaries/linux/
#
# Example:
# nrinfragent_tarball_version: 1.18.0
#nrinfragent_tarball_version: ""
# Directory in which to download and unzip tarball.
#
# Example:
# nrinfragent_tarball_download_dir: /opt/nri-agent-download
#nrinfragent_tarball_download_dir: ""
#
# Tarball Installation Configuration Parameters
#
# https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/linux-installation/tarball-assisted-install-infrastructure-agent-linux/#parameters
#
# Agent home directory path: NRIA_AGENT_DIR
#
# Example:
# nrinfragent_tarball_agent_dir: /opt/nri-agent
#nrinfragent_tarball_agent_dir: ""
# Agent bundled file do not download from the web
# Use local tarball instead
#
# Example:
# nrinfragent_tarball_from_local: yes
#nrinfragent_tarball_from_local: ""
# Agent binary directory path: NRIA_BIN_DIR
#
# Example:
# nrinfragent_tarball_bin_dir: /usr/local/bin
#nrinfragent_tarball_bin_dir: ""
# Agent log file path: NRIA_LOG_FILE
#
# Example:
# nrinfragent_tarball_log_file: /opt/nri-agent/nr.log
#nrinfragent_tarball_log_file: ""
# Agent privilege level: NRIA_MODE
#
# Example:
# nrinfragent_tarball_mode: UNPRIVILEGED
#nrinfragent_tarball_mode: ""
# Agent PID file path: NRIA_PID_FILE
#
# Example:
# nrinfragent_tarball_pid_file: /opt/nri-agent/nr.pid
#nrinfragent_tarball_pid_file: ""
# Agent plugin directory path: NRIA_PLUGIN_DIR
#
# Example:
# nrinfragent_tarball_plugin_dir: /opt/nri-agent/nr-integrations.d
#nrinfragent_tarball_plugin_dir: ""
# Agent binary "run as" user: NRIA_USER
#
# Example:
# nrinfragent_tarball_user: newrelic
#nrinfragent_tarball_user: ""
# Add logging to the newrelic infrastructure agent
#
# Example:
#
# nrinfragent_logging:
# - name: TCP_Logging
# source_type: tcp
# tcp:
# uri: tcp://0.0.0.0:2345
# format: none
# pattern: ERROR
# custom_attributes:
# logtype: nginx
# region: example-us-02
# team: B-team
#
# - name: file_logging
# source_type: file
# file: /var/log/example.log