File tree 9 files changed +0
-17
lines changed
9 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,6 @@ We can simplify the ``conf.sls`` with the new ``files_switch`` macro to use in t
306
306
include:
307
307
- ntp
308
308
309
- {%- set tplroot = tpldir.split('/')[0] %}
310
309
{%- from 'ntp/map.jinja' import ntp with context %}
311
310
{%- from 'ntp/libtofs.jinja' import files_switch %}
312
311
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- set sls_service_clean = tplroot ~ ' .service.clean' %}
7
5
{%- from tplroot ~ " /map.jinja" import template with context % }
8
6
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- set sls_package_install = tplroot ~ ' .package.install' %}
7
5
{%- from tplroot ~ " /map.jinja" import template with context % }
8
6
{%- from tplroot ~ " /libtofs.jinja" import files_switch with context % }
Original file line number Diff line number Diff line change 47
47
- salt://xxx/files/default/etc/yyy/zzz.conf.jinja
48
48
- template: jinja
49
49
#}
50
- {#- Get the `tplroot` from `tpldir` #}
51
- {% - set tplroot = tpldir .split ('/' )[0] %}
52
50
{% - set path_prefix = salt ['config.get' ](tplroot ~ ':tofs:path_prefix' , tplroot ) %}
53
51
{% - set files_dir = salt ['config.get' ](tplroot ~ ':tofs:dirs:files' , 'files' ) %}
54
52
{% - set files_switch_list = salt ['config.get' ](
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=jinja
3
3
4
- {#- Get the `tplroot` from `tpldir` #}
5
- {% - set tplroot = tpldir .split ('/' )[0] %}
6
4
{#- Start imports as #}
7
5
{% - import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
8
6
{% - import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- set sls_config_clean = tplroot ~ ' .config.clean' %}
7
5
{%- from tplroot ~ " /map.jinja" import template with context % }
8
6
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- from tplroot ~ " /map.jinja" import template with context % }
7
5
8
6
template- package- install- pkg- installed:
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- from tplroot ~ " /map.jinja" import template with context % }
7
5
8
6
template- service- clean- service- dead:
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
- {# - Get the `tplroot` from `tpldir` #}
5
- {%- set tplroot = tpldir.split(' /' )[0 ] %}
6
4
{%- set sls_config_file = tplroot ~ ' .config.file' %}
7
5
{%- from tplroot ~ " /map.jinja" import template with context % }
8
6
You can’t perform that action at this time.
0 commit comments