salt state file voor monitoring agent
This commit is contained in:
parent
f33ed2d767
commit
08439b20c0
26
eindopdracht/salt/monitoring-agent.sls
Normal file
26
eindopdracht/salt/monitoring-agent.sls
Normal 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: '*'
|
Reference in New Issue
Block a user