瀏覽代碼

Create facts for Debian-like systems

DarkMorford 6 年之前
父節點
當前提交
dcf84762d5
共有 2 個文件被更改,包括 9 次插入0 次删除
  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'