Skip to content

Commit c09f469

Browse files
committed
bring code into modern times
1 parent ca922ca commit c09f469

File tree

19 files changed

+59
-53
lines changed

19 files changed

+59
-53
lines changed

examples/hiera/data/common.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
classes:
3+
- users::common
4+
- ntp::config
5+
6+
ntp::config::ntpservers:
7+
- 'ntp1.example.com'
8+
- 'ntp2.example.com'
9+
10+
lookup_options:
11+
classes:
12+
merge: unique

examples/hiera/data/dc1.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
ntp::config::ntpservers:
3+
- 'ntp1.dc1.example.com'
4+
- 'ntp2.dc1.example.com'
5+
classes:
6+
- users::dc1

examples/hiera/etc/hiera.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

examples/hiera/etc/hieradb/common.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/hiera/etc/hieradb/dc1.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/hiera/etc/hieradb/development.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

examples/hiera/etc/puppet.conf

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/hiera/hiera.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
version: 5
3+
defaults:
4+
datadir: data
5+
data_hash: yaml_data
6+
7+
hierarchy:
8+
- name: 'Per Location'
9+
path: "%{facts.location}.yaml"
10+
11+
- name: 'Per Environment'
12+
path: "%{facts.environment}.yaml"
13+
14+
- name: 'Common Data'
15+
path: 'common.yaml'

examples/hiera/modules/data/manifests/common.pp

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
ntp::config::ntpservers:
3+
- '1.pool.ntp.org'
4+
- '2.pool.ntp.org'

0 commit comments

Comments
 (0)