/appsystems/JQM-SERVER/shell/stopServer.sh: ----用脚本停止应用
cmd.run:
- name: /bin/sh /appsystems/JQM-SERVER/shell/stopServer.sh
- runas: weblogic ---指定应用停止的执行用户
/appsystems/JQM-SERVER/shell/backup.sh: ---- 指定脚本进行备份
cmd.run:
- name: /bin/sh /appsystems/JQM-SERVER/shell/backup.sh
- runas: weblogic
/appsystems/JQM-SERVER/config/application-env.properties: -----推送配置文件
file.managed:
- source: salt://jqm_server_config/application-env.properties ----指定配置文件目录
- user: weblogic
- group: weblogic
- mode: 644
/appsystems/JQM-SERVER/config/mq-message-info.properties:
file.managed:
- source: salt://jqm_server_config/mq-message-info.properties
- user: weblogic
- group: weblogic
- mode: 644
/appsystems/JQM-SERVER/apps/jqm-server-0.0.1-SNAPSHOT.jar: ---推送新的jar包
file.managed:
- name: /appsystems/JQM-SERVER/apps/jqm-server-0.0.1-SNAPSHOT.jar
- source: salt://jqm-server-0.0.1-SNAPSHOT.jar
- user: weblogic
- group: weblogic
- mode: 644
/start-JQM-servr: --启动服务
cmd.run:
- name : /appsystems/JQM-SERVER/shell/startServer.sh
- runas: weblogic --指定运行脚本用户
- bg: True ---指定运行脚本minion端后台执行,server端不需要等待执行结构即退出