diff --git a/data/common.yaml b/data/common.yaml new file mode 100644 index 000000000..31dda199e --- /dev/null +++ b/data/common.yaml @@ -0,0 +1,3 @@ +--- + +{} diff --git a/data/os/Debian/11.yaml b/data/os/Debian/11.yaml new file mode 100644 index 000000000..5767ad622 --- /dev/null +++ b/data/os/Debian/11.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.18.0' diff --git a/data/os/Debian/12.yaml b/data/os/Debian/12.yaml new file mode 100644 index 000000000..faaa42821 --- /dev/null +++ b/data/os/Debian/12.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.22.1' diff --git a/data/os/RedHat/8.yaml b/data/os/RedHat/8.yaml new file mode 100644 index 000000000..bc24cf7f4 --- /dev/null +++ b/data/os/RedHat/8.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.14.1' diff --git a/data/os/RedHat/9.yaml b/data/os/RedHat/9.yaml new file mode 100644 index 000000000..dee2ff0c0 --- /dev/null +++ b/data/os/RedHat/9.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.20.1' diff --git a/data/os/Ubuntu/20.04.yaml b/data/os/Ubuntu/20.04.yaml new file mode 100644 index 000000000..5767ad622 --- /dev/null +++ b/data/os/Ubuntu/20.04.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.18.0' diff --git a/data/os/Ubuntu/22.04.yaml b/data/os/Ubuntu/22.04.yaml new file mode 100644 index 000000000..5767ad622 --- /dev/null +++ b/data/os/Ubuntu/22.04.yaml @@ -0,0 +1,3 @@ +--- + +nginx::nginx_version: '1.18.0' diff --git a/hiera.yaml b/hiera.yaml new file mode 100644 index 000000000..545fff327 --- /dev/null +++ b/hiera.yaml @@ -0,0 +1,21 @@ +--- +version: 5 + +defaults: # Used for any hierarchy level that omits these keys. + datadir: data # This path is relative to hiera.yaml's directory. + data_hash: yaml_data # Use the built-in YAML backend. + +hierarchy: + - name: "osfamily/major release" + paths: + # Used to distinguish between Debian and Ubuntu + - "os/%{facts.os.name}/%{facts.os.release.major}.yaml" + - "os/%{facts.os.family}/%{facts.os.release.major}.yaml" + # Used for Solaris + - "os/%{facts.os.family}/%{facts.kernelrelease}.yaml" + - name: "osfamily" + paths: + - "os/%{facts.os.name}.yaml" + - "os/%{facts.os.family}.yaml" + - name: 'common' + path: 'common.yaml'