Skip to content

Instantly share code, notes, and snippets.

@robinbowes
Created December 14, 2015 23:37
Show Gist options
  • Save robinbowes/6cdff082a41a73abdcde to your computer and use it in GitHub Desktop.
Save robinbowes/6cdff082a41a73abdcde to your computer and use it in GitHub Desktop.
cat /etc/puppet/hieradata/node/lin002.yo61.net.yaml
---
ssh.server.port: 20542
[root@lin002 ~]# puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item ssh.server.port in any Hiera data file and no default supplied at /etc/puppet/environments/production/modules/profile_ssh/manifests/server.pp:4 on node lin002.yo61.net
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
---
:backends:
- yaml
:logger: console
:hierarchy:
- "node/%{::clientcert}"
- "environment/%{::environment}"
- common
:yaml:
:datadir: /etc/puppet/hieradata
# tree /etc/puppet/hieradata
/etc/puppet/hieradata
├── common.yaml
├── environment
│   └── production.yaml
└── node
└── lin002.yo61.net.yaml
[master]
storeconfigs = true
storeconfigs_backend = puppetdb
reports = store
hiera_config = /etc/puppet/hiera.yaml
digest_algorithm = md5
pluginsync = true
ssl_client_verify_header = SSL_CLIENT_VERIFY
parser = current
dns_alt_names = puppet
autosign = false
ssl_client_header = SSL_CLIENT_S_DN
certname = puppet.robinbowes.com
environmentpath = /etc/puppet/environments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment