Skip to content

Convert to nodeless #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: production
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
classes: []
users:
'john':
comment: 'John Arundel'
Expand Down
3 changes: 3 additions & 0 deletions data/nodes/demo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
classes:
- role::demo
1 change: 0 additions & 1 deletion data/nodes/example-node.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ defaults:
data_hash: yaml_data

hierarchy:
- name: "Per-node data"
path: "nodes/%{facts.hostname}.yaml"
- name: "Common defaults"
path: "common.yaml"
22 changes: 2 additions & 20 deletions manifests/site.pp
Original file line number Diff line number Diff line change
@@ -1,20 +1,2 @@
## site.pp ##

# This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point
# used when an agent connects to a master and asks for an updated configuration.
#
# Global objects like filebuckets and resource defaults should go in this file,
# as should the default node definition. (The default node can be omitted
# if you use the console and don't define any other nodes in site.pp. See
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
# node definitions.)

## Active Configurations ##

# Disable filebucket by default for all File resources:
#https://docs.puppet.com/pe/2015.3/release_notes.html#filebucket-resource-no-longer-created-by-default
File { backup => false }

node 'demo' {
include role::demo
}
# Include all classes from (hiera)data and put them in a merged, flattened array with all duplicate values removed.
include(lookup('classes', { 'merge' => 'unique' }))