5
includes/etc/cron.d/scanner
Normal file
5
includes/etc/cron.d/scanner
Normal file
@ -0,0 +1,5 @@
|
||||
#
|
||||
# Default Scanner Scheduled Job
|
||||
#
|
||||
|
||||
*/1 * * * * ansible-playbook nofusscomputing.phpipam_scan_agent.agent -v
|
8
includes/etc/supervisor/conf.d/cron.conf
Normal file
8
includes/etc/supervisor/conf.d/cron.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[program:cron]
|
||||
startsecs=0
|
||||
stopwaitsecs=55
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
command=/usr/sbin/crond -f -L /var/log/crond.log -l info
|
8
includes/etc/supervisor/conf.d/rulebook.conf
Normal file
8
includes/etc/supervisor/conf.d/rulebook.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[program:rulebook]
|
||||
startsecs=0
|
||||
stopwaitsecs=55
|
||||
command=ansible-rulebook -r nofusscomputing.phpipam_scan_agent.agent_receive --env-vars "HTTP_PORT" -i /root/hosts.yaml -v
|
||||
autorestart=true
|
||||
autostart=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
27
includes/etc/supervisor/supervisord.conf
Normal file
27
includes/etc/supervisor/supervisord.conf
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
[unix_http_server]
|
||||
file=/var/run/supervisor.sock
|
||||
chmod=0700
|
||||
|
||||
;[inet_http_server]
|
||||
;port = :9001
|
||||
; username = user
|
||||
; password = 123
|
||||
|
||||
[supervisord]
|
||||
logfile=/var/log/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
nodaemon = true
|
||||
user=root
|
||||
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///var/run/supervisor.sock
|
||||
|
||||
|
||||
[include]
|
||||
files = /etc/supervisor/conf.d/*.conf
|
6
includes/root/hosts.yaml
Normal file
6
includes/root/hosts.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
all:
|
||||
hosts:
|
||||
localhost:
|
||||
vars:
|
||||
ansible_connection: local
|
||||
|
Reference in New Issue
Block a user