Add ReadWritePaths (#34)
This commit is contained in:
parent
71e05aa022
commit
f75c25fe6a
@ -23,4 +23,4 @@
|
|||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ grafana_agent_user_group }}"
|
group: "{{ grafana_agent_user_group }}"
|
||||||
mode: 0755
|
mode: 0775
|
||||||
|
@ -11,7 +11,7 @@ After=local-fs.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
User={{ grafana_agent_user }}
|
User={{ grafana_agent_user }}
|
||||||
Group={{ grafana_agent_user_group }}
|
Group={{ grafana_agent_user_group }}
|
||||||
WorkingDirectory={{ grafana_agent_config_dir }}
|
WorkingDirectory={{ grafana_agent_data_dir }}
|
||||||
EnvironmentFile={{ grafana_agent_config_dir }}/{{ grafana_agent_env_file}}
|
EnvironmentFile={{ grafana_agent_config_dir }}/{{ grafana_agent_env_file}}
|
||||||
|
|
||||||
ExecStart={{ grafana_agent_install_dir }}/{{ grafana_agent_binary }} \
|
ExecStart={{ grafana_agent_install_dir }}/{{ grafana_agent_binary }} \
|
||||||
@ -39,6 +39,7 @@ ProtectKernelTunables=yes
|
|||||||
{% else %}
|
{% else %}
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
ReadWritePaths=/tmp {{ grafana_agent_data_dir }} {{ grafana_agent_positions_dir }} {{ grafana_agent_wal_dir }}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user