Skip to content

Commit

Permalink
Merge pull request puppetlabs#5972 from jcoconnor/ticket/PUP-7597-hie…
Browse files Browse the repository at this point in the history
…ra5-config-master

(PUP-7597) Add Hiera5 default yaml files
  • Loading branch information
thallgren authored Jun 13, 2017
2 parents b03b5c8 + 7178bf1 commit f0dc3c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
11 changes: 11 additions & 0 deletions conf/hiera.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# Hiera 5 Global configuration file

version: 5

# defaults:
# data_hash: yaml_data
# hierarchy:
# - name: Common
# data_hash: yaml_data
hierarchy: []
15 changes: 15 additions & 0 deletions ext/hiera/hiera.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
version: 5
defaults:
# The default value for "datadir" is "data" under the same directory as the hiera.yaml
# file (this file)
# When specifying a datadir, make sure the directory exists.
# See https://docs.puppet.com/puppet/4.10/environments.html for further details on environments.
# datadir: data
# data_hash: yaml_data
hierarchy:
- name: "Per-node data (yaml version)"
path: "nodes/%{::trusted.certname}.yaml"
- name: "Other YAML hierarchy levels"
paths:
- "common.yaml"
2 changes: 1 addition & 1 deletion install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def install_binfile(from, op_file, target)
# Change directory into the puppet root so we don't get the wrong files for install.
FileUtils.cd File.dirname(__FILE__) do
# Set these values to what you want installed.
configs = glob(%w{conf/auth.conf conf/puppet.conf})
configs = glob(%w{conf/auth.conf conf/puppet.conf conf/hiera.yaml})
bins = glob(%w{bin/*})
rdoc = glob(%w{bin/* lib/**/*.rb README* }).reject { |e| e=~ /\.(bat|cmd)$/ }
ri = glob(%w{bin/*.rb lib/**/*.rb}).reject { |e| e=~ /\.(bat|cmd)$/ }
Expand Down

0 comments on commit f0dc3c6

Please sign in to comment.