-
Notifications
You must be signed in to change notification settings - Fork 4
/
c0032.yml
93 lines (82 loc) · 2.04 KB
/
c0032.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
doc_meta: |
folder: dvars
title: instance level merge
head: |
Demo dvars leave level merge in scope and instance level
sections:
- title: Note
content: |
* dvars expand in instance level
* dvars object can merge in leaf level
* dvar in dev will override same name dvar in nonprod level
* school object in nonprod could append new element and also override same name element
- title: Demo
log: yes
notes:
goal:
- dvars expand in instance level
- dvars object can merge in leaf level
- dvar in dev will override same name dvar in nonprod level
expected:
- school object in nonprod could append new element and
- also override same name element
scopes:
-
name: global
vars:
student:
name: Tom
gender: Male
address:
suburb:
name: sydney
postcode: 2000
CBD: yes
school: Sydney Grammar
-
name: nonprod
members:
- dev
- staging
vars:
a: non-prod-a
b: non-prod-b
c: non-prod-c
d: non-prod-d
dvars:
- name: school
value: |
address:
suburb:
name: {{.student.address.suburb.name}}
postcode: 2000
CBD: yes
school: {{.student.address.school}}
flags: [toObj]
-
name: dev
vars:
a: dev-a
b: dev-b
dvars:
- name: school
value: |
address:
suburb:
name: {{.student.address.suburb.name}}
postcode: 2000
CBD: no
school: {{.student.address.school}}
principal: Mr Peter
flags: [toObj]
tasks:
-
name: task
task:
-
func: shell
do:
- echo """1.school -> {{.school}}"""
- echo """2.school object-> {{.school_object.address.suburb.CBD}}"""
- echo """3.school object-> {{.school_object.address.school}}"""
- echo """4.school object-> {{.school_object.principal}}"""