Last active
August 29, 2015 13:57
-
-
Save kmullin/9419684 to your computer and use it in GitHub Desktop.
Puppet Weirdness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number: 2014030603 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:hierarchy: | |
- default | |
:yaml: | |
:datadir: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node default { | |
$number = hiera('number') | |
validate_re($number, '^\d{10}$') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo bash puppet.sh | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/pe_version.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/puppet_vardir.rb | |
Info: Loading facts in /puppet/modules/puppetlabs-stdlib/lib/facter/root_home.rb | |
Debug: hiera(): Hiera YAML backend starting | |
Debug: hiera(): Looking up number in YAML backend | |
Debug: hiera(): Looking for data source default | |
Debug: hiera(): Found number in default | |
Error: validate_re(): 2014030603 does not match "^\\d{10}$" at /gist/init.pp:5 on node precise64.justin.tv | |
Error: validate_re(): 2014030603 does not match "^\\d{10}$" at /gist/init.pp:5 on node precise64.justin.tv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
puppet apply init.pp --verbose --debug --hiera_config=hiera.yaml --modulepath=/puppet/modules/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment