aboutsummaryrefslogblamecommitdiff
path: root/environments/hiera.yaml
blob: eda5eb3ac62d28bce7e2b4d451b370b0a430132a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                       


                                 




















                                                                       
---
version: 5

defaults:
  datadir: .
  data_hash: yaml_data

hierarchy:
  - name: "Initialization variables"
    path: "/root/puppet_variables.json"

  - name: "Puppet ldap variables"
    data_hash: ldap_data

  - name: "Per-role environment data"
    mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]

  - name: "Per-role global data"
    mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"]
    datadir: ../global

  - name: "Per-type environment data"
    path: "types/%{facts.ec2_metadata.instance-type}.yaml"

  - name: "Per-type global data"
    path: "types/%{facts.ec2_metadata.instance-type}.yaml"
    datadir: ../global

  - name: "Common environment data"
    path: "common.yaml"

  - name: "Common global data"
    path: "common.yaml"
    datadir: ../global