Skip to content

Commit 859e598

Browse files
Wayne Gemmellwaynegemmell
authored andcommitted
Added osfamilymap, osmap and other defaults
1 parent 10b7519 commit 859e598

File tree

5 files changed

+153
-0
lines changed

5 files changed

+153
-0
lines changed

php/defaults.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
php:
5+
pillar_php_version: "7.0"

php/osarchmap.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
#
4+
# Setup variables using grains['osarch'] based logic.
5+
# You just need to add the key:values for an `osarch` that differ
6+
# from `defaults.yaml`.
7+
# Only add an `osarch` which is/will be supported by the formula.
8+
#
9+
# If you do not need to provide defaults via the `osarch` grain,
10+
# you will need to provide at least an empty dict in this file, e.g.
11+
# osarch: {}
12+
---
13+
amd64:
14+
arch: amd64
15+
16+
x86_64:
17+
arch: amd64
18+
19+
386:
20+
arch: 386
21+
22+
arm64:
23+
arch: arm64
24+
25+
armv6l:
26+
arch: armv6l
27+
28+
armv7l:
29+
arch: armv7l
30+
31+
ppc64le:
32+
arch: ppc64le
33+
34+
s390x:
35+
arch: s390x

php/osfamilymap.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
#
4+
# Setup variables using grains['os_family'] based logic.
5+
# You just need to add the key:values for an `os_family` that differ
6+
# from `defaults.yaml` + `osarch.yaml`.
7+
# Only add an `os_family` which is/will be supported by the formula.
8+
#
9+
# If you do not need to provide defaults via the `os_family` grain,
10+
# you will need to provide at least an empty dict in this file, e.g.
11+
# osfamilymap: {}
12+
---
13+
Debian: {}
14+
15+
RedHat: {}
16+
17+
Suse: {}
18+
19+
Gentoo: {}
20+
21+
Arch: {}
22+
Alpine: {}
23+
24+
FreeBSD: {}
25+
26+
OpenBSD: {}
27+
28+
Solaris: {}
29+
30+
Windows: {}
31+
32+
MacOS: {}

php/osfingermap.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
#
4+
# Setup variables using grains['osfinger'] based logic.
5+
# You just need to add the key:values for an `osfinger` that differ
6+
# from `defaults.yaml` + `osarch.yaml` + `os_family.yaml` + `osmap.yaml`.
7+
# Only add an `osfinger` which is/will be supported by the formula.
8+
#
9+
# If you do not need to provide defaults via the `os_finger` grain,
10+
# you will need to provide at least an empty dict in this file, e.g.
11+
# osfingermap: {}
12+
---
13+
# os: Debian
14+
Debian-10: {}
15+
Debian-9: {}
16+
Debian-8: {}
17+
18+
# os: Ubuntu
19+
Ubuntu-20.04:
20+
pillar_php_version: "7.4"
21+
Ubuntu-19.10:
22+
pillar_php_version: "7.3"
23+
Ubuntu-18.04:
24+
pillar_php_version: "7.2"
25+
26+
# os: Fedora
27+
Fedora-31: {}
28+
Fedora-30: {}
29+
30+
# os: CentOS
31+
CentOS Linux-8: {}
32+
CentOS Linux-7: {}
33+
34+
# os: Amazon
35+
Amazon Linux-2: {}
36+
Amazon Linux AMI-2018: {}
37+
38+
# os: SUSE
39+
Leap-15: {}
40+
41+
# os: FreeBSD
42+
FreeBSD-12: {}
43+
44+
# os: Windows
45+
Windows-8.1: {}
46+
47+
# os: Gentoo
48+
Gentoo-2: {}

php/osmap.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
#
4+
# Setup variables using grains['os'] based logic.
5+
# You just need to add the key:values for an `os` that differ
6+
# from `defaults.yaml` + `osarch.yaml` + `os_family.yaml`.
7+
# Only add an `os` which is/will be supported by the formula.
8+
#
9+
# If you do not need to provide defaults via the `os` grain,
10+
# you will need to provide at least an empty dict in this file, e.g.
11+
# osmap: {}
12+
---
13+
# os_family: Debian
14+
Ubuntu: {}
15+
Raspbian: {}
16+
17+
# os_family: RedHat
18+
Fedora: {}
19+
CentOS: {}
20+
Amazon: {}
21+
22+
# os_family: Suse
23+
SUSE: {}
24+
openSUSE: {}
25+
26+
# os_family: Gentoo
27+
Funtoo: {}
28+
29+
# os_family: Arch
30+
Manjaro: {}
31+
32+
# os_family: Solaris
33+
SmartOS: {}

0 commit comments

Comments
 (0)