-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
149 lines (107 loc) · 5.03 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
#################################################### Control variables
# CDN download location of the compressed Hotrod binary
hotrod_download_uri: ""
# CDN download location of the sha1 hash
hotrod_download_uri_sha1: "{{ hotrod_download_uri }}.sha1"
# whether to install the hotrod binary
hotrod_install_binary: no
# whether to install Hotrod server (implies hotrod_install_binary=yes)
hotrod_install_server: no
# whether to install Hotrod agent (implies hotrod_install_binary=yes)
hotrod_install_agent: no
# the system user name for Hotrod
hotrod_system_user: hotrod
# the system user group for Hotrod
hotrod_system_group: hotrod
# !! DANGER ZONE !! uninstall options.
# using these settings will remove data directories!
# Mutually exclusive with any hotrod_install_* options enabled.
hotrod_remove_agent: no
hotrod_remove_server: no
hotrod_remove_binary: no
#################################################### Install: binary
# the directory in which Hotrod's binary is installed
hotrod_binary_install_directory: /opt/hotrod
# the location (and name) of the downloaded Hotrod binary
hotrod_binary_install_path: "{{ hotrod_binary_install_directory }}/hotrod"
# this value creates a symbolic link which points to hotrod_binary_install_path,
# such that:
# hotrod_binary_system_path -> hotrod_binary_install_path
#
# This path should be accessible in PATH
hotrod_binary_system_path: /usr/bin/hotrod
#################################################### Install: server
# if not provided, Hotrod server will generate a random admin password on FIRST startup
# must be at least 8 characters, otherwise the value is ignored
hotrod_server_admin_init_password: ""
# where to store Hotrod server's data files
hotrod_server_staging_dir: /var/lib/hotrod-server
# the server's API and UI will be exposed on this network address and port
hotrod_server_bind_address: 127.0.0.1:3000
# Bind address of the server's internl agent TCP socket
# Environment variable: HOTROD_AGENT_LISTENER
hotrod_server_agent_listener_address: 127.0.0.1:3040
# Bind address of the server's internal agent's HTTP API
# Environment variable: HOTROD_AGENT_API_BIND_ADDRESS
hotrod_server_agent_bind_address: 127.0.0.1:3041
# Hotrod server automatically prunes log and metric data older than this number of days
# bigger values needs more disk space
hotrod_server_log_retention_days: 30
# explicitly accept the EULA when prompted at first startup
# required so that the server does not prompt when started by systemd
hotrod_server_license_eula_accept: "yes"
# As of Hotrod 3.5.0, server agent is not optional
hotrod_server_enable_server_agent: yes
# If given, sets the auto-enrollment key for the server
hotrod_server_auto_enrollment_key: ""
# location of the server's systemd service file
hotrod_server_systemd_unit_name: hotrod-server.service
hotrod_server_systemd_unit_path: /lib/systemd/system/{{ hotrod_server_systemd_unit_name }}
#################################################### Install: agent
# agent ID to use for the installed agent
# should NOT contain whitespace or special characters apart from dashes
# Environment variable: HOTROD_AGENT_ID
hotrod_agent_id: "agent1"
# Environment variable: HOTROD_AGENT_NAME
hotrod_agent_name: "{{ hotrod_agent_id }}"
# specify the auto enrollment key, if used by the server.
# takes precedence over hotrod_agent_api_key if given
# defaults to hotrod_server_auto_enrollment_key
hotrod_agent_auto_enrollment_key: "{{ hotrod_server_auto_enrollment_key }}"
# Environment variable: HOTROD_AGENT_API_KEY
hotrod_agent_api_key: ""
# Environment variable: HOTROD_AGENT_LISTENER
hotrod_agent_listen_address: "127.0.0.1:4040"
# Environment variable: HOTROD_AGENT_API_BIND_ADDRESS=
hotrod_agent_api_bind_address: "127.0.0.1:4041"
# Environment variable: HOTROD_PIPES_DIR
hotrod_agent_pipes_dir: "/var/lib/hotrod-agent-{{hotrod_agent_id}}"
# Environment variable: HOTROD_URL
hotrod_agent_server_url: "http://{{ hotrod_server_bind_address }}"
# Environment variable: HOTROD_AGENT_POLL_INTERVAL
hotrod_agent_poll_interval: "15"
# Environment variable: HOTROD_AGENT_TAGS
hotrod_agent_tags: ""
# Used as the agent's --logs-interval option
hotrod_agent_logs_interval: "5"
# --metrics-interval=60
hotrod_agent_metrics_interval: "60"
# makes the agent use the systemd-based pipe scheduler (hotrod run agent --systemd-pipe-scheduler)
hotrod_agent_scheduler_systemd: yes
# makes the agent use the internal pipe scheduler (hotrod run agent --agent-pipe-scheduler)
hotrod_agent_scheduler_agent: no
# where to place Hotrod agent's systemd unit file
hotrod_agent_systemd_unit_name: "hotrod-agent-{{hotrod_agent_id}}.service"
hotrod_agent_systemd_unit_path: "/lib/systemd/system/{{ hotrod_agent_systemd_unit_name }}"
# extra CLI arguments for agent startup. Do not include:
# --systemd-pipe-scheduler
# --agent-pipe-scheduler
# --logs-interval
# --metrics-interval
hotrod_agent_additional_cli_args: ""
#################################################### Role internals
# OS support matrix for this role
os_supported_matrix:
Ubuntu:
min_version: "18.04"
max_version: "22.10"