Skip to content

Neatlogic-runner is used to proxy the execution of automated local or remote job tasks. To realize automated tasks, inspections, and release scenarios, it needs to be combined with neatlogic-runner and neatlogic-autoexec-backend based on the neatlogic-autoexec module.

License

Notifications You must be signed in to change notification settings

neatlogic/neatlogic-runner

Repository files navigation

中文 / English


关于

neatlogic-runner(执行器) 是一个纯后端应用,部署上主要是为了解决跨网段安全策略问题,功能上用于代理执行自动化本地或远程作业任务场景( 包括neatlogic-tagent 注册、日志查询,以及衔接代理neatlogic-autoexecneatlogic-autoexec-backend逻辑)
实现自动化作业、巡检、发布、自动发现采集数据存放在neatlogic-cmdb ,配合neatlogic-itsm支持在流程中实现流程自动化

架构图

采用springboot框架搭建独立应用
自动化作业过程:neatlogic-autoexec(应有服务集群)-> neatlogic-runner(执行器)+neatlogic-autoexec-backend-> 通过对应协议到目标(linux、windows等)执行相应脚本命令 img9.png

安装教程

需整体一键构建和部署,请参考neatlogic-itom-all

关于依赖包tagent-client.jar

构建时可能会报com.neatlogic.tagent包不存在,此包暂不开源,请到neatlogic-itom-all/tagent目录找到对应版本下载使用。

❗❗❗ 注意

 ❗❗❗"仅支持在mac或linux下开发部署"   

配置参数

目前仅讲解docker部署方式,其他方式后续补充: 进入docker的/app/systems/neatlogic-runner/config 目录,编辑application.properties

#SERVER
#应用名
spring.application.name=autoexecrunner
server.port=8084
server.servlet.context-path=/${spring.application.name}

# SPRING AOP CONFIG
spring.aop.auto=true
spring.aop.proxy-target-class=true

# UPLOAD FILE CONFIG
#上传限制
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-request-size=100MB
spring.servlet.multipart.max-file-size=100MB

#NEATLOGIC WEB
#neatlogic后端应用地址
neatlogic.root=http://127.0.0.1:8080/neatlogic
#认证 连接时校验
auth.type=basic
access.key=neatlogic
access.secret=x15wDEzSbBL6tV1W


#RUNNER
#runner根路径
runner.home=/Users/cocokong/autoexec-runner

#LOGGER
#日志级别
logging.config=${runner.home}/config/logback-spring.xml
logging.home=${runner.home}/logs/autoexec-runner
logging.level.root=DEBUG

#NEATLOGIC-AUTOEXEC-BACKEND
#neatlogic--autoexec-backend自动化作业数据路径
autoexec.home=/Users/cocokong/IdeaProjects/autoexec/data/job

#DEPLOY
#neatlogic--autoexec-backend发布版本数据路径
deploy.home=/app/autoexec/data/verdata
 
#neatlogic--autoexec-backend数据根路径
data.home=${runner.home}/data

#tagent 安装包下载目录,将文件放在这个目录,就可以通过“http://ip:8084/autoexecrunner/tagent/download/” +文件名下载文件
tagent.download.path=/app/autoexec/data/tagent/

About

Neatlogic-runner is used to proxy the execution of automated local or remote job tasks. To realize automated tasks, inspections, and release scenarios, it needs to be combined with neatlogic-runner and neatlogic-autoexec-backend based on the neatlogic-autoexec module.

Resources

License

Stars

Watchers

Forks

Packages

No packages published