File tree Expand file tree Collapse file tree 8 files changed +50
-7
lines changed Expand file tree Collapse file tree 8 files changed +50
-7
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# vim: ft=sls
33
4+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6+
47include:
8+ - {{ sls_fail_if_unsupported }}
59 - .file
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# vim: ft=sls
33
4+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6+
47include:
8+ - {{ sls_fail_if_unsupported }}
59 - .package
610 - .config
711 - .service
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ FreeBSD: {}
3333
3434OpenBSD : {}
3535
36- Solaris : {}
36+ Solaris :
37+ unsupported : ' osfamily: Solaris.'
3738
38- Windows : {}
39+ Windows :
40+ unsupported : ' osfamily: Windows.'
3941
40- MacOS : {}
42+ MacOS :
43+ unsupported : ' osfamily: MacOS.'
Original file line number Diff line number Diff line change 1010# the `os_finger` grain.
1111---
1212# os: Ubuntu
13+ Ubuntu-14.04 :
14+ unsupported : ' osfinger: Ubuntu 14.04 (does not use `systemd`).'
15+ Ubuntu-16.04 : {}
1316Ubuntu-18.04 :
1417 config : /etc/template.d/custom-ubuntu-18.04.conf
1518
1619# os: CentOS
1720CentOS-6 :
18- pkg : template-centos-6
19- config : /etc/template.d/custom-centos-6.conf
20- CentOS-7 : {}
21+ unsupported : ' osfinger: CentOS 6 (does not use `systemd`).'
22+ CentOS-7 :
23+ pkg : template-centos-7
24+ config : /etc/template.d/custom-centos-7.conf
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ Ubuntu:
1414 pkg : template-ubuntu
1515 config : /etc/template.d/custom-ubuntu.conf
1616
17- Raspbian : {}
17+ Raspbian :
18+ unsupported : ' os: Raspbian (`armhf` architecture).'
1819
1920# os_family: RedHat
2021Fedora :
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# vim: ft=sls
33
4+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6+
47include:
8+ - {{ sls_fail_if_unsupported }}
59 - .install
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22# vim: ft=sls
33
4+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6+
47include:
8+ - {{ sls_fail_if_unsupported }}
59 - .running
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ # vim: ft=sls
3+
4+ {# - Get the `tplroot` from `tpldir` #}
5+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
6+ {%- from tplroot ~ " /map.jinja" import template with context % }
7+
8+ {%- if template.unsupported is defined and template.unsupported % }
9+ template- unsupported- test- fail:
10+ test.fail_without_changes:
11+ - name: |
12+
13+
14+ # ######################################
15+ # Unsupported minion for this formula #
16+ # ######################################
17+ {{ template.unsupported }}
18+ - failhard: True
19+ {%- endif % }
You can’t perform that action at this time.
0 commit comments