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 Ruby
Branch: master

Add example of relative namespacing hell. If used in

a version of Puppet that does relative namespacing, it will blow up
with a duplicate declaration error.
latest commit d3ee364762
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 Initial commit of test manifests directory.
1960-class-case-copy.pp Initial commit of test manifests directory.
1960-class-case.pp
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 Initial commit of test manifests directory.
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 2.7 language guide test manifests
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
autoparams_enc.rb
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 2.7 language guide test manifests
classtitle.pp Prove that the title variable comes from the container, not a native …
collection_relationship_with_property.pp Test whether you can collect based on properties
collector-override.pp
collector-search.pp You can use variables in collectors.
collector_mania.pp Some examples of perfectly normal behavior.
complex-interpolation.pp Comment out some broken statements in some old files
contain_stages.pp Test class containment and stages
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 Initial commit of test manifests directory.
defined-builtin.pp Test defined function w/ native types.
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 Miscellaneous Puppet 3 changes and non-changes
edge_declaration_in_definition.pp Add example of using chaining syntax in a type definition.
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 Initial commit of test manifests directory.
fact_override.pp 2.7 language guide test manifests
failed-dependency.pp 2.7 language guide test manifests
false_fact.pp Facts can be multiple data types now
file-ctime.pp Prove something inconclusive about ctime/mtime. are these broken?
file-replace.pp Add file-replace to prove the replace param also works w/ content att…
filebucket_attribute_precedence.pp
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 Test some stuff around PUP-4483
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
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 parser changed behavior of 'in' statements.
future_inherit_twice.pp You can totally inherit from the same class twice
future_interpolation.pp More fun with interpolation
future_lambda_scope.pp investigate lambda scope
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 More testing for writing the new resources (advanced) page
future_string_to_number_arithmetic.pp Show use of double-negation operator to get around having to use scanf()
future_substring_access.pp Show negative indexes with substring access.
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
hiera_interpolation.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.
if-statement-scope.pp 2.7 language guide test manifests
if_undef.pp Several new manifests from Magpie.
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 Initial commit of test manifests directory.
masterless-node-statements.pp Prove that Node statements work with puppet apply.
modulepath.pp A bunch of manifests from Magpie.
multitag_collect.pp Proof that collecting works with tags even if there are multiple tags…
mutable-array-hash.pp 2.7 language guide test manifests
myfile.txt Test whether arbitrary fragments can be used as the switch of a case …
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 2.7 language guide test manifests
nodename.pp
nonparamparams.pp Several new manifests from Magpie.
notification-chaining.pp 2.7 language guide test manifests
notify-names.pp adding test manifests from screech.magpie.lan.
notify-with-and-without-path.pp
notifytest.pp Initial commit of test manifests directory.
numbers-valid.pp Testing valid number formats.
override_without_inheritance.pp Overriding resources with collections (inc. plusignment)
param-style-warning.pp Miscellaneous Puppet 3 changes and non-changes
private classes.pp private classes aren't a thing yet
qualification-of-classnames.pp Initial commit of test manifests directory.
quote_problems.pp clarify with some comments
recurse_purge.pp Testing the file type's recurse attribute
regex-match-var-fuckery.pp
regsubst.pp Some examples of perfectly normal behavior.
relative-namespacing.pp Add example of relative namespacing hell. If used in
replace-link.pp force is required for ensure absent, too
require-function.pp 2.7 language guide test manifests
reserved.pp 2.7 language guide test manifests
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
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
scope_define_and_class.pp 2.7 language guide test manifests
scopetest.pp Several new examples, you know, whatever. From redmaster.
scopewarnings.pp A bunch of manifests from Magpie.
search.pp 2.7 language guide test manifests
selector-multi.pp Hash literals ok in selector values now.
serverless-server.pp 2.7 language guide test manifests
settings-scope.pp Demonstrating the "settings::" variable scope. (master's settings only.)
shebang.pp Initial commit of test manifests directory.
site_27_variable_topscope_test.pp Several new manifests from Magpie.
sorted_facts.pp Sorted facts for mcollective's facts.yaml file
source-content.pp
stages-test.pp Initial commit of test manifests directory.
string-multi-line.pp 2.7 language guide test manifests
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
template-tags.pp Test some of those special template vars, to confirm parse-order depe…
template_bring_in_scope.pp
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
trusted_hash.pp Yey, trusted hash is now immutable.
undef_attribute.pp 2.7 language guide test manifests
unless-statement.pp
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 A whole bunch of crap.
virtual-parse-order.pp 2.7 language guide test manifests
virtual_relationship.pp test whether you can require virtual resources.
yaml-resource-ref.pp Late 2012: A bunch of Hiera tests, mostly involving odd data types.

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.