1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 不要更改这个配置文件
global_scripts:
- "{{ script_dir }}/global.sh"
variables:
master_ip: "192.168.0.199"
app_name: "myapp"
version: "1.0.0"
clients:
mac_server:
name: "mac_server"
execution_method: ssh
ssh_config:
host: "{{ master_ip }}"
port: 22
username: "li"
private_key_path: "/Users/li/.ssh/id_rsa"
timeout_seconds: 1
pipelines:
- name: "deploy_app"
title: "部署应用"
steps:
- name: "get_system_info"
title: "获取系统信息"
script: "{{ script_dir }}/get_system_info.sh"
timeout_seconds: 3
servers:
- mac_server
variables:
foo: "bar"
extract:
- name: "os_version_num"
patterns:
source: "stdout"
- name: "deploy_app2"
title: "部署应用2"
steps:
- name: "get_system_info"
title: "获取系统信息"
script: "{{ script_dir }}/deploy.sh"
timeout_seconds: 5
variables:
foo: "bar2"
default_timeout: 60