1

salt state file voor monitoring agent

This commit is contained in:
Ventilaar 2021-10-30 14:29:36 +02:00
parent f33ed2d767
commit 08439b20c0

View File

@ -0,0 +1,26 @@
/opt/agent:
file.directory:
- user: root
- group: root
- mode: 755
/opt/agent/run.py:
file.managed:
- source: salt://agent/run.py
- mode: 755
- user: root
- group: root
/opt/agent/config.xml:
file.managed:
- source: salt://agent/config.xml
- mode: 644
- user: root
- group: root
python3-pip:
pkg.installed
install_requests:
pip.installed:
- name: requests
python3 /opt/agent/run.py:
cron.present:
- user: root
- minute: '*'