Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit da61828

Browse files
Merge pull request #3 from fabricesemti80/dev
Dev
2 parents 54a6ab3 + 15e7117 commit da61828

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed
File renamed without changes.

data/nodes/dc0.fabricesemti.net.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

data/nodes/web0.fabricesemti.net.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

data/os/windows.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
---

hiera.yaml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
---
22
version: 5
33

4-
defaults:
5-
datadir: "data"
6-
74
hierarchy:
8-
- name: "Yaml backend"
9-
data_hash: yaml_data
10-
paths:
11-
- "nodes/%{trusted.certname}.yaml"
12-
- "common.yaml"
5+
- name: "Per-node data" # Human-readable name.
6+
path: "nodes/%{trusted.certname}.yaml" # File path, relative to datadir.
7+
# ^^^ IMPORTANT: include the file extension!
8+
9+
- name: "Per-OS defaults"
10+
path: "os/%{facts.os.family}.yaml"
11+
12+
- name: "Common data"
13+
path: "common.yaml"
14+
15+
# ---
16+
# version: 5
17+
18+
# defaults:
19+
# datadir: "data"
20+
21+
# hierarchy:
22+
# - name: "Yaml backend"
23+
# data_hash: yaml_data
24+
# paths:
25+
# - "nodes/%{trusted.certname}.yaml"
26+
# - "common.yaml"

manifests/site.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@
4646
include role::wsus_server
4747
include profile::windows
4848
}
49-
node 'pet-dc-0.petsandbox.local' {
50-
include role::domain_controller
51-
include profile::windows
52-
}
53-
node 'pet-dc-1.petsandbox.local' {
49+
node 'pet-dc-0.petsandbox.local','pet-dc-1.petsandbox.local' {
5450
include role::domain_controller
5551
include profile::windows
5652
}

0 commit comments

Comments
 (0)