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









                                       
                        
 


                                 




















                                                                       
---
version: 5

defaults:
  datadir: .
  data_hash: yaml_data

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

  - 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