Add init loop in prometheus sidecar container
[osm/devops.git] / descriptor-packages / tools / charm-generator / generator / ansible-charm / templates / layer.yaml.j2
1 {#-
2 # Copyright 2019 Whitestack, LLC
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15 #
16 # For those usages not covered by the Apache License, Version 2.0 please
17 # contact: esousa@whitestack.com or glavado@whitestack.com
18 -#}
19 {%- if license is defined -%}
20 # Copyright {{ license.year }} {{ license.company }}
21 #
22 # Licensed under the Apache License, Version 2.0 (the "License"); you may
23 # not use this file except in compliance with the License. You may obtain
24 # a copy of the License at
25 #
26 #         http://www.apache.org/licenses/LICENSE-2.0
27 #
28 # Unless required by applicable law or agreed to in writing, software
29 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
30 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
31 # License for the specific language governing permissions and limitations
32 # under the License.
33 #
34 # For those usages not covered by the Apache License, Version 2.0 please
35 # contact: {{ license.email }}
36 {%- endif %}
37
38 includes:
39 {% for lr in layers -%}
40 - "layer:{{ lr.name }}"
41 {% endfor -%}
42 options:
43 {%- for lr in layers if lr.options is defined %}
44   {{ lr.name }}:
45     {%- for op in lr.options %}
46     {{ op.name }}: {{ op.value }}
47     {%- endfor -%}
48 {% endfor %}
49