Skip to content

Instantly share code, notes, and snippets.

@Sitebase
Forked from jordansissel/site.pp
Created March 29, 2014 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitebase/9850004 to your computer and use it in GitHub Desktop.
Save Sitebase/9850004 to your computer and use it in GitHub Desktop.
.
./modules
./modules/foo
./modules/foo/files
./modules/foo/files/hello
./modules/foo/manifests
./modules/foo/manifests/init.pp
./manifests
./manifests/site.pp
Hello world
class foo {
file {
"/tmp/hello":
ensure => file,
source => "puppet:///modules/foo/hello";
}
}
snack(/tmp/z) % puppet apply --modulepath modules manifests/site.pp
notice: /Stage[main]/Foo/File[/tmp/hello]/ensure: defined content as '{md5}f0ef7081e1539ac00ef5b761b4fb01b3'
include foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment