File tree 8 files changed +50
-7
lines changed
8 files changed +50
-7
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5
+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6
+
4
7
include:
8
+ - {{ sls_fail_if_unsupported }}
5
9
- .file
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5
+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6
+
4
7
include:
8
+ - {{ sls_fail_if_unsupported }}
5
9
- .package
6
10
- .config
7
11
- .service
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ FreeBSD: {}
33
33
34
34
OpenBSD : {}
35
35
36
- Solaris : {}
36
+ Solaris :
37
+ unsupported : ' osfamily: Solaris.'
37
38
38
- Windows : {}
39
+ Windows :
40
+ unsupported : ' osfamily: Windows.'
39
41
40
- MacOS : {}
42
+ MacOS :
43
+ unsupported : ' osfamily: MacOS.'
Original file line number Diff line number Diff line change 10
10
# the `os_finger` grain.
11
11
---
12
12
# os: Ubuntu
13
+ Ubuntu-14.04 :
14
+ unsupported : ' osfinger: Ubuntu 14.04 (does not use `systemd`).'
15
+ Ubuntu-16.04 : {}
13
16
Ubuntu-18.04 :
14
17
config : /etc/template.d/custom-ubuntu-18.04.conf
15
18
16
19
# os: CentOS
17
20
CentOS-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:
14
14
pkg : template-ubuntu
15
15
config : /etc/template.d/custom-ubuntu.conf
16
16
17
- Raspbian : {}
17
+ Raspbian :
18
+ unsupported : ' os: Raspbian (`armhf` architecture).'
18
19
19
20
# os_family: RedHat
20
21
Fedora :
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5
+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6
+
4
7
include:
8
+ - {{ sls_fail_if_unsupported }}
5
9
- .install
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# vim: ft=sls
3
3
4
+ {%- set tplroot = tpldir.split(' /' )[0 ] %}
5
+ {%- set sls_fail_if_unsupported = tplroot ~ ' .unsupported' %}
6
+
4
7
include:
8
+ - {{ sls_fail_if_unsupported }}
5
9
- .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