-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.jinja
75 lines (68 loc) · 2.3 KB
/
map.jinja
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
{% set common = salt['grains.filter_by']({
'Debian': {
'source': {'engine': 'pkg', 'address': 'http://'},
},
'RedHat': {
'source': {'engine': 'pkg', 'address': 'http://'},
},
}, merge=salt['pillar.get']('opencontrail:common')) %}
{% set collector = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-openstack-analytics'],
'services': ['supervisor-analytics']
},
'RedHat': {
'pkgs': ['contrail-openstack-analytics'],
'services': ['supervisor-analytics']
},
}, merge=salt['pillar.get']('opencontrail:collector')) %}
{% set compute = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-vrouter', 'contrail-openstack-vrouter'],
'services': ['supervisor-vrouter']
},
'RedHat': {
'pkgs': ['contrail-vrouter', 'contrail-openstack-vrouter'],
'services': ['supervisor-vrouter']
},
}, merge=salt['pillar.get']('opencontrail:compute')) %}
{% set config = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-openstack-config'],
'services': ['zookeeper', 'supervisor-config']
},
'RedHat': {
'pkgs': ['contrail-openstack-config'],
'services': ['zookeeper', 'supervisor-config']
},
}, merge=salt['pillar.get']('opencontrail:config')) %}
{% set control = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-openstack-control'],
'services': ['contrail-control', 'supervisor-control']
},
'RedHat': {
'pkgs': ['contrail-openstack-control'],
'services': ['contrail-control', 'supervisor-control']
},
}, merge=salt['pillar.get']('opencontrail:control')) %}
{% set database = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-openstack-database'],
'services': ['supervisord-contrail-database']
},
'RedHat': {
'pkgs': ['contrail-openstack-database'],
'services': ['supervisord-contrail-database']
},
}, merge=salt['pillar.get']('opencontrail:database')) %}
{% set web = salt['grains.filter_by']({
'Debian': {
'pkgs': ['contrail-openstack-webui'],
'services': ['supervisor-webui']
},
'RedHat': {
'pkgs': ['contrail-openstack-webui'],
'services': ['supervisor-webui']
},
}, merge=salt['pillar.get']('opencontrail:web')) %}