11 Star 19 Fork 18

NeatLogic / neatlogic-autoexec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
AGPL-3.0

中文 / English

关于

neatlogic-autoexec自动化模块可以通过组合代码脚本实现场景一键自动化执行,例如MySQL数据库安装,模块包括自定义工具、组合工具、作业管理等功能。自动发布neatlogic-deploy 、巡检neatlogic-inspect 和配置管理neatlogic-cmdb的自动发现功能,也使用了neatlogic-autoexec的基础能力。 neatlogic-autoexec不能单独部署,也不能单独构建,如需构建和部署,请参考neatlogic-itom-all 的说明文档。

架构图

neatlogic-autoexec是自动化模块的管理平台,主要用于自动化作业的配置,执行还需要配合neatlogic-runnerneatlogic-autoexec-backend 支持,neatlogic-autoexec-scripts 则包含了大量原厂脚本,涵盖了安装数据库、复制虚拟机、灾备切换等复杂场景。 img9.png

关键名词

编排(组合工具)

多个阶段组(Phase Group)串联组合成为一个编排,编排是最小的自动化发布单元,原子工具需要放入编排才可以被执行。编排中的多个阶段组顺序串联执行。 img.png

阶段组(Phase Group)

多个阶段(Stage)并联组合成为一个阶段组,一个阶段组包含多个阶段,这多个阶段可以并行执行(oneshot exectuing),也可以多个执行目标节点分批依次执行(gray scale executing),每批节点依次执行完阶段组内的阶段后再启动另外一批节点继续依次执行阶段组内的各个阶段。

阶段(Phase)

多个原子工具(Atom tool)串联组合成为一个阶段,同一阶段的多个原子工具按照编排顺序执行。如果一个阶段设置多个执行目标节点,多个目标节点支持分多批执行。原子工具在同一个节点顺序执行。

原子工具(Tool)

单个原子工具类似单独开发的命令行工具,可以接受命名参数或者匿名参数(自由参数),基于输入的参数完成设计的功能并按照要求输出其他参数供后续的工具使用。

按执行方式分类

原子工具根据执行方式的区别,分为三类:本地执行(Runner executing)、远程执行(Remote executing)、本地连接远程(Runner to remote executing)执行。

本地执行(Runner executing):原子工具在自动化调度工具(Runner)所在OS的本地执行。
远程执行(Runner executing):原子工具会被自动化调度工具推送到远端的服务器OS上以某个用户身份执行。
本地到远程执行:原子工具在调度工具(Runner)所在OS上执行,自行连接远端服务器或其他自动化目标进行相关的处理。

按工具开发方式分类

按开发方式分类,分为内置工具和客户化工具。

内置工具:跟随自动化调度工具版本一起发布,主要包括相对固定的基础功能,譬如:参数聚合、参数抽取、环境变量设置、条件分流、文件拷贝、文件处理、简单自定义脚本执行等标准化的工具。
客户化工具:可以使用自定义工具管理界面管理的自定义脚本、库或者包。用于完成非标准化的具有一定用户特点的任务。同时提供导入导出工具,完成自定义工具到svn或git的导入导出;完全可以使用git或者svn进行相关脚本的管理。

Demo编排图例: img.png

编排常用核心功能

通过组合多个原子工具,通过各个原子工具的参数输入输出的串并连来完成既定的功能。 主要功能有:编排编辑、阶段组设置、阶段设置、执行流程控制、编排参数定义、原子工具参数输入、参数引用、参数抽取、参数聚合等。

执行流程控制

自动化执行流程中会涉及多个目标节点的串并行、分批执行、条件分流、参数传递等。

常见执行流

多目标节点串行执行

使用一个阶段组,把多个阶段编排进同一个阶段组,阶段组设置“grayScale”执行方式,启动作业选择需要的目标执行节点,并设置全部串行。那么多个目标节点将一个节点一个节点的按顺序执行当前阶段组里所有阶段。 img.png

多目标节点并行执行

使用一个阶段组,把多个阶段编排进同一个阶段组,阶段组设置“oneshot”执行方式,启动作业选择需要的目标执行节点,并设置全部并行。那么多个目标节点将一起并发按顺序执行当前阶段组里所有阶段。 img.png

多目标节点单阶段分批执行

在目标阶段设置单独的分批执行策略(如不单独设定,则会使用整个作业层面的分批策略),设置分批数量。多个目标节点将会分开多批,一批一批的完成阶段的执行。 img.png

多目标节点多阶段分批执行

在目标阶段组设置单独的分批执行策略(如不单独设定,则会使用整个作业层面的分批策略),设置分批数量。多个目标节点将会分开多批,一批一批的完成阶段组里多个阶段的依次执行。 img.png img.png

多目标节点多阶段按阶段依次执行

编排中设置多个阶段组,每个阶段组只包含一个阶段,那么作业就会一个阶段一个阶段的依次执行,所有目标节点执行完当前阶段才会进入下一个阶段的执行。

没有远程目标节点的执行

设置阶段执行模式为Runner执行,Runner执行的阶段不需要设定执行目标节点。一般用于进行多个目标节点处理的前置或后置处理,用于准备数据或者聚合处理数据。

组合多种执行策略

全局、阶段组、阶段都可以设置自身的执行模式,通过组合阶段组、阶段来完成复合的执行策略要求。 img.png

条件执行

自动化调度器提供了内置的工具:IF-Block,通过IF-Block实现条件判断进行if...else...的处理。条件语句可以支持环境变量值的判断或者文件是否存在的判断。 img.png

作业主动失败退出执行

native/failjob

主动退出作业的执行,一般结合IF-Else来使用,当达到某些条件时,失败退出。

native/failkeys

当日志中出现某些关键字或者匹配某正则表达式时,作业失败退出。

参数传递和引用

参数作用域

参数作用域分为全局和节点内部。节点内部参数可以通过native的工具进行聚合转换为全局参数。

节点作用域

基于远程执行节点执行的工具产生的输出参数,其作用域仅限于节点本身,原子工具基于该节点执行时才会看到属于该节点的上游输出参数。

全局作用域

Runner OS本地执行的工具产生的输出参数,其作用域是全局,所有其他节点均可见和引用。

参数抽取聚合并转换作用域
native/extractoutval内置工具

抽取上游工具的输出,不改变作用域。一般用于各个目标节点采集数据后(格式为json),抽取部分数据提供给同一节点的下游工具使用。

basic/aggoutput内置工具

对多节点输出的某个变量进行聚合转换(结果是json对象)作用域为全局, 提供给下游其他节点使用, 建议节点数不超过32。

basic/concatoutout内置工具

对多节点输出的某个变量进行连接, 支持字符串和数组连接, 建议节点数不超过32。输出有两种格式:多行文本或json文本。

basic/mergeoutput内置工具

对多节点输出key-value集合进行并集处理(结果是json对象)作用域为全局, 提供给下游其他节点使用, 建议节点数不超过32。

环境变量

使用工具native/setenv可以设置环境变量,环境变量的作用域也分为节点内部和全局。根据setenv的参数决定其作用域。

全局变量

自动化具有全局变量定义配置,以及在执行过程中修改已经配置的全局变量的数值。一般用于某些跟执行时间相关的有一定延续性处理的自动化场景,譬如:银行日终出来的最后日结时间,这个时间在每次完成日终跑批后都会主动更新,下次自动化会把这个时间作为输入进行后一天的日终自动化调度处理。

native/updategparam

更新全局参数表中某个变量的值

参数引用

参数引用有三种方式:一是引用作业参数(作业参数作用域为全局,所有地方都可以引用),通过编排界面选择相引用;二是引用上游工具输出参数(需注意作用域,作用域为节点的不能跨节点引用),通过编排界面工具选择使用;三是引用环境变量,引用方法是:${变量名},共有四种环境变量:1)Runner进程的环境变量;2)内置环境变量(AUTOEXEC_JOBID、AUTOEXEC_NODE、NODE_NAME、NODE_HOST、NODE_PORT),AUTOEXEC_NODE是json格式,其他都是常规文本;3)native/setenv设置的环境变量(注意作用域);4)作业参数(作业参数同时也作为环境变量,注意命令不能跟内置环境变量冲突)。

执行中的人工干预

执行中的人工控制

img.png img.png

作业详情和日志

点击自动化模块菜单“作业管理”,将会出现作业列表,点击其中的作业会出现作业详情。在作业详情页面可以看到各个阶段、阶段中各个节点的执行状态。在作业详情右上角有查看作业控制台日志、执行记录、暂停、中止、重新执行等功能按钮。在阶段详情的顶部有执行的功能按钮。在具体节点列表中可以查看节点执行实时日志、执行记录等。

暂停执行

暂停执行也叫优雅停止。打开作业详情,点击作业执行界面右上角按钮“暂停”,作业执行完当前正在执行的原子操作后暂停执行。正在执行的阶段和作业将会进入“已暂停”状态。

中止执行

强行终止当前作业的执行。打开作业详情,点击作业执行界面右上角按钮“中止”,作业正在执行的所有操作将会被强行中止,正在执行的节点、阶段和作业进入“已中止”状态。

继续执行

作业停止执行后,点击作业详情页右上角按钮“重新执行”,将会弹出对话框,选择“跳过已成功或已忽略节点“,点击“确认”。将会略过成功和忽略的节点操作,继续执行失败或未执行的阶段操作。

重新执行

作业停止执行后,点击作业详情页右上角按钮“重新执行”,将会弹出对话框,选择“全部重新执行”点击“确认”。将会重置所有状态,从头开始执行作业。

继续执行某阶段

在作业详情中,点击某个阶段,在阶段详情页面点击按钮“执行”,将会弹出对话框,选择“跳过已成功或已忽略节点“,点击“确认”。将会略过当前阶段成功和忽略的节点操作,继续执行当前阶段失败或未执行的节点操作。该阶段执行结束不会触发下游的其他阶段执行,作业处于“执行中”状态。

重新执行某阶段

在作业详情中,点击某个阶段,在阶段详情页面点击按钮“执行”,将会弹出对话框,选择“全部重新执行”点击“确认”。将会重置当前阶段的所有状态,从头开始执行该阶段。该阶段执行结束不会触发下游的其他阶段执行,作业处于“执行中”状态。

重新执行某节点

在作业详情中,点击某个阶段,在节点详情页面点击按钮“重新执行”,将会重新执行该节点。该节点执行完后不会触发下游节点或下游阶段执行。作业处于“执行中”状态。

执行中的输入

使用interact/interact工具可以实现在过程中交互输入,输入参数可以被下游工具引用。使用interact/continue支持执行过程中确认是否继续执行,选择“否”则中止执行。

连通性检测并等待工具

在环境安装类的自动化中,在软件安装后,往往要等软件启动后再进行下一步操作。这个时候需要进行延时等待服务启动。这个时候可以使用检测并等待的内置工具一边检测连通性一边等待(建议不要用sleep工具进行人为的延时,这不是正确的方法)。

inspect/pingcheckwait工具

持续Ping某个IP,一直达到参数给出的最大重试次数,仍然不通则失败退出。

inspect/tcpcheckwait工具

持续进行TCP三次握手,一直达到参数给出的最大重试次数,仍然不通则失败退出。

inspect/urlcheckwait工具

持续访问某URL,直达到参数给出的最大重试次数,仍然不通则失败退出。

文件传输

远程两个OS之间传送文件

fileops/filetripletrans三角传输

Runner从源头主机获取文件或目录传送到执行目标OS。源头OS到Runner,Runner中转到目标OS,中间不落地。

fileops/filep2ptrans点到点传输

远程主机之间点到点的文件传输, 临时在执行目标OS上启用一个TCP端口用于传输, 默认使用端口1025。

Runner和执行目标OS之间传送文件

fileops/remotecopy

在Runner和执行目标OS之间上传下载文件。

Runner和文件服务器之间传送文件

fileops/ftpget

基于FTP下载文件服务器文件。

fileops/ftpput

基于FTP上载文件到文件服务器。

fileops/httpget

基于HTTP下载文件服务器文件。

fileops/httpput

基于HTTP上载文件到文件服务器。

fileops/scpget

基于SSH下载文件服务器文件。

fileops/scpput

基于SSH上载文件到文件服务器。

执行目标OS和文件服务器之间传送文件

fileremote/nfsmount

挂载NFS服务到当前OS,使用NFS跟文件服务器传输文件。

fileremote/nfsumount

卸载挂载的NFS挂载点

fileremote/ftpget

基于FTP下载文件服务器文件。

fileremote/ftpput

基于FTP上载文件到文件服务器。

fileremote/httpget

基于HTTP下载文件服务器文件。

fileremote/httpput

基于HTTP上载文件到文件服务器。

fileremote/scpget

基于SSH下载文件服务器文件。

fileremote/scpput

基于SSH上载文件到文件服务器。

简单脚本执行

在执行目标OS上执行小脚本

osbasic/execscript

在自动化执行目标OS上执行小脚本,建议只用于执行10行以内的脚本;复杂脚本建议使用自定义脚本库功能编写单独的自定义工具。

build/localscript

在Runner上执行小脚本,仅在执行集成与发布环境中被支持,其他使用情形会报错。建议只用于执行10行以内的脚本;复杂脚本建议使用自定义脚本库功能编写单独的自定义工具。

在某个固定OS上执行小脚本

basic/rexecscript

根据参数输入的IP地址和用户密码,通过SSH或Tagent协议连接远程OS执行脚本。一般用于非执行目标OS的脚本执行。建议只用于执行10行以内的脚本;复杂脚本建议使用自定义脚本库功能编写单独的自定义工具。

OS基本配置处理

osbasic/getcmdout

获取命令行输出并存储到输出参数中,输出参数有text和json两种文本格式。

osbasic/setuserenv

设置用户环境变量。

osbasic/sethostname

设置主机名。

osbasic/resetuserpwd

重置用户密码。

osbasic/changeuserpwd

修改用户密码。

osbasic/modifyini

修改ini格式的文件(格式是key=value的文件)。

osbasic/modifyhost

修改OS得hosts文件。

osbasic/modifylimit

修改Linux/Unix的limit设置。

osbasic/modifysysctl

修改Linux的syctl设置。

osbasic/checkport

检查执行目标OS得某个端口是否被占用,通过输出参数返回是否被占用。

osbasic/getallnicip

获取执行目标OS里所有网卡的IP配置,以json格式输出到输出参数中。

osbasic/gensshkey

在执行目标OS的某个用户下生成ssh公私钥。

osbasic/getblockdevsize

获取执行目标OS所有块设备大小(单位MB)列表。

osbasic/scsiudevrules

在执行目标OS生成SCSI磁盘Udev规则,多主机共享SCSI磁盘, 在其中一个主机上生成统一的Udev规则,通过其他步骤把此规则配置到其主机。

服务启停

startstop/stopwait

调用远程命令停止应用,检测应用是否停止的同时tail日志。

startstop/startwait

调用远程命令启动应用,检测应用是否启动的同时tail日志。

startstop/checkprocess

检查进程数量是否符合预期

startstop/checlog

检查服务输出日志是否出现某些关键字

父子作业

作业管理中支持父子作业的树形展示,作业可以通过工具basic/createjob创建子作业。

其他功能

预置参数集

预置参数集可以关联一个或多个工具,参数将关联工具的输入参数合并为一个参数集合,支持提前配置参数值。 img.png

工具直接关联预置参数集,组合工具引用工具时,工具的配置默认启用关联预置参数集,工具的输入参数映射值默认为预置参数集配置。

img.png

工具未关联预置参数集,组合工具引用工具时,工具的配置默认关闭预置参数集。若启用关联预置参数集,可任意选择关联当前工具的预置参数集。

img.png

功能列表

编号 分类 功能点 说明
1 参数 全局参数 支持自动化作业全局参数的增删改查基础管理。
2 支持全局参数字段文本、密码、日期、文本域等类型。
3 预设参数 支持自动化作业预设参数的增删改查基础管理。
4 支持按工具库、原子操作预设参数集。
5 支持预设参数集引用全局参数。
6 分类 工具分类 支持工具分类的增删改查基础管理。
7 支持查看统计分类下面的工具库、自定义原子操作、关联编排的数量。
8 支持工具库按类型设置工具库的权限。
9 工具目录 支持工具目录的增删改查基础管理。
10 支持工具库按目录设置权限。
11 场景 编排场景 支持自动化场景的增删改查基础管理。
12 支持按类型、按场景、按岗位职能定义自动化场景分类。
13 支持在自动化的组合编排内,设置不同的使用场景,不同的使用场景包含了编排中的不同执行阶段。场景可以实现一个编排,多种使用场景的需求。
14 工具库 内置工具库 平台内置常用的基础工具库,包括基础工具、文件操作、配置备份等,不同自动化模块包括模块工具库,如:服务启停、灾备切换、软件安装、SQL处理、巡检、备份、自动采集。
15 支持内置工具在线测试。
16 支持内置工具库在线帮助,如输入参数、输出参数、执行方式、风险等级。
17 支持内置工具库关联自定义展示模板。
18 自定义原子操作 支持常见的脚本语言,包括Python、Ruby、VBScript、Perl、PowerShell、CMD、Bash、csh、ksh、sh、JavaScript。
19 支持丰富的输入、输出参数类型,包括文本、文本域、密码、文件、时间、日期、单选、多选、开关、账号、JSON对象、节点信息,参数支持设置默认值。
20 支持命令行参数,可指定或不指定命令行参数数量。
21 支持自定义工具可设置风险等级。
22 支持自定义工具可绑定工具目录。
23 支持基于git版本管理,支持基于从Git导入、导出原子操作。
24 支持自定义工具支持版本审核发布。
25 支持常见的连接协议,如:SSH、WinRM、Tagent、IPMI、HTTP、HTTPS、Telnet、SNMP、SMI等。
26 支持连接方式,如:远端目标机器执行、本地执行、本地到远程执行。
27 支持自定义原子操作在线测试验证。
28 支持远在操作导入、导出,用于在不同环境的环境迁移。
29 组合工具 组合管理 支持组合管理的增删改查基础管理功能。
30 支持自定义场景编排组合,支持图形化拖拉拽布局设计。
31 支持复制现有组合编排,用于创建与原组合编排相似的新组合编排。
32 支持组合编排内工具自定义若干阶段或阶段组,阶段内的工具支持串行、并行、条件判断。
33 支持组合编排阶段内工具全量、分批次、灰度等执行策略。
34 支持组合编排内按阶段划分若干逻辑场景,执行时可按逻辑场景快速选择执行。
35 支持组合编排阶段作业通知策略。
36 支持组合编排阶段内定义1到N个若干个工具库或自定义原子操作。支持工具库或原则操作同阶段内或跨阶段内数据传递。
37 支持常见的组合编排作业参数定义,如:文本、文本域、密码、文件、时间、日期、单选、多选、开关、账号、JSON对象、节点信息,以及参数默认值、必填、校验规则等规则设置。
38 支持组合编排作业参数与阶段内工具库或自定义操作参数传递。
39 支持工具库或自定义原子操作参数引用参数模板,批量修改和赋值。
40 支持组合编排授权操作,如:执行权限、修改权限等。
41 支持组合编排预设执行目标、以及执行时动态选择执行目标,支持阶段单独设置执行目标且优先级高于编排全局目标。
42 支持编排内工具库、自定义原则操作引用作业参数、上游工具输出参数、预设参数集、全局参数、静态参数的定义。
43 支持组合编排阶段配置动态执行目标,上游阶段的输出参数作为下游阶段的执行目标。
44 支持工具库和自定义原子操作执行策略,如:失败继续还是终止。
45 支持组合编排导出、导入,可用于组合流程在不同环境迁移。
46 组合执行 编排执行 支持组合编排设置为定时执行。
47 支持组合编排有权限用户发起自动化作业立即执行。
48 支持组合编排设置并发数量设置分批数量,分批次执行。
49 支持多种执行目标录入方式,包括直接勾选节点、设置过滤器指定目标范围、文本输入等方式。
50 支持动态执行目标设置,引用上游节点输出参数作为执行目标。
51 支持失败中止、失败继续执行策略,部分节点失败时,支持人为干预,也支持忽略错误,继续执行。
52 支持终止、重跑等操作,重跑支持全部重跑,跳过成功节点重跑。
53 支持验证编排执行作业,且验证完成的作业不可以执行重跑、终止等操作。
54 支持导出作业结果将作业结果导出为Excel,包含节点结果信息,执行阶段信息,作业输出参数。
55 支持查看、导出节点运行日志、输出参数查看、导出执行单节点运行日志。
56 执行代理 Agent 支持常见操作系统,如:Windows、Linux、AIX。
57 支持分布式部署、根据管理网段下发执行。
58 支持在线查看状态、日志、配置,也可以在线管理,如:启停。
59 支持Agent对操作系统资源极少,资源范围为:cpu <= 2%,内存: <= 200MB。

⭐️ 可满足场景

类型 目标对象 采集 关系计算 巡检 配置备份 配置比对 安装交付 切换 业务调度 数据备份 应急操作 SQL执行 变更 补丁安装 应用发布
操作系统 aix
linux
windows
服务器硬件 x86服务器硬件
小机硬件
虚拟化 vmware
smartx
华为FusionComputer
中间件 jdk
tomcat
nginx
weblogic
websphere
redis
zookeeper
ActiveMQ
Apache
Hadoop
IIS
Java进程
Jboss
Jetty
Kafka
Keepalived
Lighttpd
Memcached
PHP进程
Python进程
RabbitMQ
Resin
Tuxedo
VCS
数据库 mysql
oracle
informix
mongodb
sybase
SQLServer
db2
ElasticSearch
Postgresql
Redis
容器 docker
k8s
负载均衡 F5
A10
redware
路由器/交换机 思科
华为
华三
Juniper
锐捷
山石
防火墙 华为
CheckPoint
Juniper
山石
天融信
华三
光纤交换机 Brocade
IBM
EMC
HP
Huawei
存储设备 EMC_Vnx
EMC_Vplex
EMC_RPA
HP_3PAR
HDS_AMS
HDS_VSP
HuaWei
IBM_DS
IBM_F900
IBM_Flash
IBM_SVC
IBM_V7000
NetApp
FUJITSU
DNS DNS
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Remote Network Interaction; Use with the GNU General Public License. Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.

简介

neatlogic-autoexec是运维自动化模块,内置多种运维自动化组件,是一套非常强大,能真正满足运维工作中,各种实际复杂场景的自动化解决方案。典型场景包括配置备份、软件安装、容灾切换、自动交付等。neatlogic-autoexec同时也是neatlogic-deploy应用发布、neatlogic-inspect巡检和neatlogic-cmdb自动发现的支撑模块。 展开 收起
Java 等 4 种语言
AGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/neat-logic/neatlogic-autoexec.git
git@gitee.com:neat-logic/neatlogic-autoexec.git
neat-logic
neatlogic-autoexec
neatlogic-autoexec
develop3.0.0

搜索帮助