Skip to content

Commit

Permalink
Add OS family to the Hiera hierarchy
Browse files Browse the repository at this point in the history
Also adds the -family- part to distinguish the RedHat OS family from the
RedHat (aka RHEL) OS.
  • Loading branch information
ekohl committed Oct 29, 2023
1 parent 6e19b9c commit cd45b32
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ hierarchy:
- name: 'Distribution Name'
path: '%{facts.os.name}.yaml'
- name: 'OS Family Major Version'
path: '%{facts.os.family}-%{facts.os.release.major}.yaml'
path: '%{facts.os.family}-family-%{facts.os.release.major}.yaml'
- name: 'OS Family'
path: '%{facts.os.family}-family.yaml'
- name: 'common'
path: 'common.yaml'

0 comments on commit cd45b32

Please sign in to comment.