Skip to content

Instantly share code, notes, and snippets.

@fujin
Created October 9, 2008 02:24
Show Gist options
  • Select an option

  • Save fujin/15676 to your computer and use it in GitHub Desktop.

Select an option

Save fujin/15676 to your computer and use it in GitHub Desktop.
aj@junglist /tmp$ cat test.pp
#!/usr/bin/env puppet
class foo {
import "blah.pp"
}
class bar {
notify { "in bar": }
}
node junglist {
# include foo
include bar
}
aj@junglist /tmp$ cat blah.pp
file {
"/tmp/poo":
content => "lala";
}
aj@junglist /tmp$ ./test.pp --debug
debug: importing '/tmp/blah.pp'
debug: Creating default schedules
debug: Failed to load library 'ldap' for feature 'ldap'
debug: Finishing transaction -610003218 with 0 changes
debug: //File[/tmp/poo]: File does not exist
debug: //File[/tmp/poo]/checksum: Initializing checksum hash
debug: //File[/tmp/poo]: Changing content
debug: //File[/tmp/poo]: 1 change(s)
debug: //File[/tmp/poo]: Creating checksum {md5}2e3817293fc275dbee74bd71ce6eb056
notice: //File[/tmp/poo]/content: created file with contents {md5}2e3817293fc275dbee74bd71ce6eb056
debug: //Node[junglist]/bar/Notify[in bar]: Changing message
debug: //Node[junglist]/bar/Notify[in bar]: 1 change(s)
notice: in bar
debug: Finishing transaction -610211438 with 2 changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment