manage memory mode

This commit is contained in:
Jeremy Gardais 2018-07-27 18:01:52 +02:00
parent e01808beb5
commit 23172f64e9
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
4 changed files with 16 additions and 3 deletions

View File

@ -6,4 +6,5 @@
* Can choose to install recommends packages. * Can choose to install recommends packages.
* Manage Netdata configuration (/etc). * Manage Netdata configuration (/etc).
* Ensure Netdata service is enabled and started. * Ensure Netdata service is enabled and started.
* Allow to change IP address and port used. * Manage IP address and port used.
* Manage memory mode.

View File

@ -22,6 +22,7 @@ A role to manage Netdata installation and configuration.
* **netdata__service_manage**: If the Netdata services should be managed [default: `True`]. * **netdata__service_manage**: If the Netdata services should be managed [default: `True`].
* **netdata__conf_bind_ip**: IP address used by Netdata to listen [default: `127.0.0.1`]. * **netdata__conf_bind_ip**: IP address used by Netdata to listen [default: `127.0.0.1`].
* **netdata__conf_bind_port**: Port used by Netdata to listen [default: `19999`]. * **netdata__conf_bind_port**: Port used by Netdata to listen [default: `19999`].
* **netdata__conf_memory_mode**: The memory mode of the database [default: `ram`].
## Example Playbook ## Example Playbook

View File

@ -84,5 +84,15 @@ netdata__conf_bind_ip: '127.0.0.1'
netdata__conf_bind_port: '19999' netdata__conf_bind_port: '19999'
# ]]] # ]]]
# .. envvar:: netdata__conf_memory_mode [[[.
#
# The memory mode of the database.
#
# Check the possible options on Netdata wiki:
# https://github.com/firehol/netdata/wiki/Memory-Requirements#memory-modes
#
netdata__conf_memory_mode: 'ram'
# ]]]
# ]]] # ]]]

View File

@ -16,8 +16,9 @@
run as user = netdata run as user = netdata
web files owner = root web files owner = root
web files group = root web files group = root
# Netdata is not designed to be exposed to potentially hostile memory mode = '{{ netdata__conf_memory_mode }}'
# networks.See https://github.com/firehol/netdata/issues/164
[web] [web]
# Netdata is not designed to be exposed to potentially hostile
# networks.See https://github.com/firehol/netdata/issues/164
bind to = {{ netdata__conf_bind_ip }}:{{ netdata__conf_bind_port }} bind to = {{ netdata__conf_bind_ip }}:{{ netdata__conf_bind_port }}