Skip to content

Instantly share code, notes, and snippets.

@cdenneen
Last active August 29, 2015 14:27
Show Gist options
  • Save cdenneen/522ff5cde387476c350f to your computer and use it in GitHub Desktop.
Save cdenneen/522ff5cde387476c350f to your computer and use it in GitHub Desktop.
hieratest
[root@ctclnxmgr02 environments]# puppet apply --modulepath hieratest/modules hieratest/manifests/site.pp --hiera_config /etc/hiera.yaml
Fact file /etc/facter/facts.d/ctclnxmgr02.txt was parsed but returned an empty data set
Fact file /etc/facter/facts.d/ctclnxmgr02.txt was parsed but returned an empty data set
Notice: Scope(Class[Ntp]): autoupdate parameter has been deprecated and replaced with package_ensure. Set this to latest for the same behavior as autoupdate => true.
Notice: Compiled catalog for ctclnxmgr02.vm.local in environment production in 1.96 seconds
Notice: Finished catalog run in 0.50 seconds
[root@ctclnxmgr02 environments]# puppet agent -t --noop --environment hieratest
Fact file /etc/facter/facts.d/ctclnxmgr02.txt was parsed but returned an empty data set
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Fact file /etc/facter/facts.d/ctclnxmgr02.txt was parsed but returned an empty data set
Info: Caching catalog for linuxmgr.vm.local
Info: Applying configuration version '1439577284'
Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content:
--- /etc/ntp.conf 2015-08-14 18:33:51.424914610 +0000
+++ /tmp/puppet-file20150814-4653-1o6ebhw 2015-08-14 18:34:46.887965316 +0000
@@ -10,10 +10,9 @@
restrict -6 ::1
-server 0.us.pool.ntp.org
-server 1.us.pool.ntp.org
-server 2.us.pool.ntp.org
-server 3.us.pool.ntp.org
+server 0.centos.pool.ntp.org
+server 1.centos.pool.ntp.org
+server 2.centos.pool.ntp.org
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
@@ -26,8 +25,3 @@
-keys /etc/ntp/keys
-trustedkey 4 8 42
-requestkey 8
-controlkey 8
-
Notice: /Stage[main]/Ntp::Config/File[/etc/ntp.conf]/content: current_value {md5}8dc90c81db856fb84da3ad8cad2ae0df, should be {md5}55e399c226e8aac2a4f2fa23a4def50d (noop)
Notice: Class[Ntp::Config]: Would have triggered 'refresh' from 1 events
Info: Class[Ntp::Config]: Scheduling refresh of Class[Ntp::Service]
Notice: Class[Ntp::Service]: Would have triggered 'refresh' from 1 events
Info: Class[Ntp::Service]: Scheduling refresh of Service[ntp]
Notice: /Stage[main]/Ntp::Service/Service[ntp]: Would have triggered 'refresh' from 1 events
Notice: Class[Ntp::Service]: Would have triggered 'refresh' from 1 events
Notice: Stage[main]: Would have triggered 'refresh' from 2 events
Notice: Finished catalog run in 0.47 seconds
[root@ctclnxmgr02 environments]# cat hieratest/manifests/site.pp
include site::base
---
:backends:
- yaml
:hierarchy:
- "nodes/%{::fqdn}"
- "ap_location/%{::ap_location}"
- "ap_service/%{::ap_service}"
- "ap_service/%{::ap_service}/%{::ap_service_function}"
- "ap_service/%{::ap_service}/%{::ap_service_function}/%{::ap_env}"
- "common/%{module_name}"
- "common/%{operatingsystem}"
- "common/%{kernel}"
- common
:logger: puppet
:yaml:
:datadir: /etc/puppet/environments/%{environment}/hieradata
:merge_behavior: deeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment