Browse Source

Create facts for Debian-like systems

DarkMorford 6 years ago
parent
commit
dcf84762d5
2 changed files with 9 additions and 0 deletions
  1. 6 0
      data/os/Debian.yaml
  2. 3 0
      hiera.yaml

+ 6 - 0
data/os/Debian.yaml

@@ -0,0 +1,6 @@
+---
+openldap::server::owner: 'openldap'
+openldap::server::group: 'openldap'
+openldap::server::server_package: 'slapd'
+openldap::server::server_service: 'slapd'
+openldap::server::utils_package: 'ldap-utils'

+ 3 - 0
hiera.yaml

@@ -6,5 +6,8 @@ defaults:  # Used for any hierarchy level that omits these keys.
   data_hash: yaml_data  # Use the built-in YAML backend.
 
 hierarchy:
+  - name: "OS Family"
+    path: "os/%{facts.os.family}.yaml"
+
   - name: 'common'
     path: 'common.yaml'