Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A whole shitload of Puppet manifests that do absolutely nothing useful. These will not teach you Puppet.
Puppet HTML Pascal Emacs Lisp
branch: master

splatting in the first argument of a chain-style function call

This works in 4.1 but is inadvisable.
latest commit 1ab4e004ef
Nick Fagerlund authored
Failed to load latest commit information.
dots Initial commit of test manifests directory.
learning-manifests For some dumb reason there was a node statement in one of my LP manif…
manifestsetting Show that ENC parameters don't end up in the facts hash
nametesting Initial commit of test manifests directory.
1960 modulenames results.txt
1960-class-case-copy.pp
1960-class-case.pp Initial commit of test manifests directory.
1960-class-names.pp Initial commit of test manifests directory.
1960-definedtype-name.pp Initial commit of test manifests directory.
1960-module-names.pp Initial commit of test manifests directory.
1960-param-names.pp
1960-var-names.pp Initial commit of test manifests directory.
2.6.5.titletesting.pp Initial commit of test manifests directory.
4473-whatdoesthisdo.pp Initial commit of test manifests directory.
README.md Add README
alias-append-attributes.pp Fun with aliases
alias-in-reference.pp Note that aliases don't work with the defined function
alias-realize.pp Fun with aliases
array-equality.pp 2.7 language guide test manifests
array-first.pp
array-range.pp 2.7 language guide test manifests
array_splat.pp scalars and hashes in splats?
autocycle.pp autocycle isn't a learning manifest.
autoparams.pp Late 2012: Test automatic parameter lookup with Hiera and ENCs
autoparams_enc.rb Show that ENC parameters don't end up in the facts hash
bogus-subscribe.pp adding test manifests from screech.magpie.lan.
bool_foolery.pp playing w/ stdlib str2bool
bools-in-arrays.pp Bools don't work right now in arrays or hashes. Or at least false doe…
case-statement-condition.pp Update case statement stuff with future parser info
case_array.pp arrays as cases and control statements: yeah, it's ==.
case_in_resource.pp update case in resource attribute example for future parser
case_order.pp haha we moved offices and it broke this thing
chain-double.pp Prove that chaining works between resource declarations
class-inherit-parameters.pp 2.7 language guide test manifests
class-relations.pp Several new examples, you know, whatever. From redmaster.
class-reversed-definition-order.pp 2.7 language guide test manifests
class_class.pp Note that class class actually works, sorta
class_dollar_name.pp
classtitle.pp
collection_relationship_with_property.pp Test whether you can collect based on properties
collector-override.pp 2.7 language guide test manifests
collector-search.pp
collector_mania.pp Some examples of perfectly normal behavior.
complex-interpolation.pp Comment out some broken statements in some old files
contain_stages.pp
create-class.pp Several new examples, you know, whatever. From redmaster.
datatypes.pp 2.7 language guide test manifests
defaultvars.pp Initial commit of test manifests directory.
define-name.pp Initial commit of test manifests directory.
define-w-metaparams.pp 2.7 language guide test manifests
defined-before-class.pp
defined-builtin.pp
defined-function-autoload.pp adding test manifests from screech.magpie.lan.
defined-function-with-nonexistant-type.pp An ugly problem involving relative namespacing and conditional resour…
defined-names.pp adding test manifests from screech.magpie.lan.
dependency-cycle.pp 2.7 language guide test manifests
does-require-implicitly-declare.pp Prove that the require metaparameter doesn't implicitly declare class…
dollardollar.pp Test which shell the exec type uses
duplicate-class-definition.pp Demonstrate a misleading error message in the puppet code base -- dup…
dynamic-defaults-scope.pp
edge_declaration_in_definition.pp
ensure-exists.pp Initial commit of test manifests directory.
even-worse-qualification-of-classnames.pp Initial commit of test manifests directory.
exec-env.pp adding test manifests from screech.magpie.lan.
exec-names.pp
exec-refresh.pp Fun with refreshing execs
exec-with-tries.pp A whole bunch of crap.
exec-with-wildcard.pp Initial commit of test manifests directory.
exec_logoutput_loglevel.pp Comment out some broken statements in some old files
exec_path.pp Prove that the shell exec provider works as expected and gives you th…
execdefaults.pp
fact_override.pp 2.7 language guide test manifests
failed-dependency.pp
false_fact.pp Facts can be multiple data types now
file-ctime.pp
file-replace.pp
filebucket_attribute_precedence.pp Test behavior of filebucket path and server attributes
filefunction.pp Initial commit of test manifests directory.
floating.pp Demonstrate weird bug with stages
future_41_lambda_cases_pup-4193.pp Lambda cases (removed for 4.1)
future_41_optional_notundef_pup-4483.pp Test some stuff around PUP-4483
future_41_splat_chaining-pup-4398.pp splatting in the first argument of a chain-style function call
future_41_struct_pup-4483.pp
future_arithmetic.pp Some arithmetic testing stuff with integers and floats
future_bare_word_strings.pp bare word strings still mostly work in future parser
future_class_reference.pp Class references like Class['mything'] can be given to include
future_comparisons.pp Test comparison expressions and array operators.
future_datatypes_even_more.pp More stuff with data types, featuring tuples and enums among others
future_datatypes_more.pp Lots more info about data types
future_elsif_repeats.pp You can totally have multiple elsif conditions, which seem to be proc…
future_file_mode.pp File mode as number actually fails with an error now.
future_function_chaincall.pp Lots of experimentation with chain style function calls and lambdas
future_hash_operators.pp Hash operator expressions
future_heredoc.pp More testing for writing the new resources (advanced) page
future_in_case_sensitivity.pp
future_inherit_twice.pp
future_interpolation.pp
future_lambda_scope.pp
future_match_types.pp More mind blowing resource declaration value funtimes
future_odd_values.pp More odd values, inc. chaining statements and convincing it to put a …
future_regex.pp The \A and \z anchors are allowed in regexen
future_resource_attribute_access.pp Do more tests with attribute accessh
future_resource_reference_as_type.pp More about resource types as types in a resource declaration
future_resource_splats.pp More testing for writing the new resources (advanced) page
future_resourceception.pp
future_string_to_number_arithmetic.pp
future_substring_access.pp
future_value_of_lambda.pp show a map statement that declares resources :|
future_value_of_resource.pp More testing for writing the new resources (advanced) page
future_variables_initial_underscore.pp Manifest to test non-local access of vars starting with underscores
hash-nonexistent-keys.pp Undef still interpolates as an empty string.
hash_in_template.pp Prove that you can key into hashes accessed w/ scope.lookupvar.
headerproblems.markdown Speculate about implementation of some header-munging features
hiding_classes.pp 2.7 language guide test manifests
hiera-functions.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.
hiera-nuthin.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.
hiera-undef.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.
hiera_interpolation.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.
if-statement-scope.pp
if_undef.pp
implicit-ordering.pp adding test manifests from screech.magpie.lan.
in-expression-case-sensitivity.pp Update in vs == for pup4
include_array.pp Note that include takes an array after 3.0
interpolate_indexing_into_vars.pp Interpolation edge case jam with dan and lizzie
ipsubst.pp adding test manifests from screech.magpie.lan.
is-this-class-declared.pp Prove that treating defined() as declared() is a horrible idea. Again.
line-endings.pp Miscellaneous Puppet 3 changes and non-changes
macwarn.pp
masterless-node-statements.pp Prove that Node statements work with puppet apply.
modulepath.pp
multitag_collect.pp
mutable-array-hash.pp 2.7 language guide test manifests
myfile.txt
name-vs-namevar.pp 2.7 language guide test manifests
namespaced-scope.pp A bunch of manifests from Magpie.
new_style_resource_defaults.pp More testing for writing the new resources (advanced) page
nil_hash.pp Example of a hash with an element that is nil
no-ensure.pp Testing what happens with files without ensure values
no_ensure.pp A whole bunch of crap.
node-regex-antimatch.pp Show how a regex node definition that DOES NOT match the current node…
node-regex-specificity.pp Test weird specificity observed in node regexes, allowing regexes tha…
node_regex_capture.pp
nodename.pp node name - you can't get it from a manifest.
nonparamparams.pp Several new manifests from Magpie.
notification-chaining.pp 2.7 language guide test manifests
notify-names.pp
notify-with-and-without-path.pp Initial commit of test manifests directory.
notifytest.pp
numbers-valid.pp Testing valid number formats.
override_without_inheritance.pp Overriding resources with collections (inc. plusignment)
param-style-warning.pp
private classes.pp private classes aren't a thing yet
qualification-of-classnames.pp
quote_problems.pp clarify with some comments
recurse_purge.pp
regex-match-var-fuckery.pp
regsubst.pp
replace-link.pp force is required for ensure absent, too
require-function.pp 2.7 language guide test manifests
reserved.pp
resource types as strings.pp Resource types can be strings in the future parser
resource-defaults-parse-order.pp 2.7 language guide test manifests
resource-reference-multi.pp 2.7 language guide test manifests
resource-stage.pp 2.7 language guide test manifests
scope-example-node-def.pp 2.7 language guide test manifests
scope_are_defines_still_dynamic_after_3.0.pp 2.7 language guide test manifests
scope_define_and_class.pp 2.7 language guide test manifests
scopetest.pp
scopewarnings.pp A bunch of manifests from Magpie.
search.pp
selector-multi.pp
serverless-server.pp 2.7 language guide test manifests
settings-scope.pp
shebang.pp Initial commit of test manifests directory.
site_27_variable_topscope_test.pp Several new manifests from Magpie.
sorted_facts.pp
source-content.pp
stages-test.pp Initial commit of test manifests directory.
string-multi-line.pp
string_append.pp Show that there's no concatenation operator
tags-multiple.pp 2.7 language guide test manifests
template-classes.pp Test some of those special template vars, to confirm parse-order depe…
template-facts-with-at.pp Whoops, @fact notation doesn't reliably refer to top scope.
template-include.pp A whole bunch of crap.
template-tags.pp Test some of those special template vars, to confirm parse-order depe…
template_bring_in_scope.pp 2.7 language guide test manifests
template_undef.pp 2.7 language guide test manifests
template_undef_vars.pp Explore various undefined values in templates
tidy-with-file-resource.pp Add test for the tidy resource type, to make sure it acts intuitively
timestamp.pp Hidden timestamp fact
trevor.pp Initial commit of test manifests directory.
trusted_hash.pp Yey, trusted hash is now immutable.
undef_attribute.pp 2.7 language guide test manifests
unless-statement.pp Miscellaneous Puppet 3 changes and non-changes
validate_cmd.pp add example of validate_cmd on directory
variable-append.pp 2.7 language guide test manifests
variable-bracket.pp 2.7 language guide test manifests
variable_names_future.pp More about var and param names
versioncmp.pp
virtual-parse-order.pp 2.7 language guide test manifests
virtual_relationship.pp test whether you can require virtual resources.
yaml-resource-ref.pp

README.md

Evil Made Manifest

These are test manifests used by a member of the Puppet Labs documentation crew. Because they explore a lot of edge cases and oddities in the language, they're filled with some pretty terrible ideas. But they might be useful for other people doing the same thing, and maybe I'll get pull requests with interesting test code I haven't thought of yet.

See the comments in each file for info about what it's demonstrating. Unless I was being lazy and didn't put comments in.

Something went wrong with that request. Please try again.