Skip to content
Browse files

Trying out the shadow_puppet example

  • Loading branch information...
0 parents commit 2c0d6297ac645f06d85a0bd808635b00577b067e @edavis10 committed Dec 21, 2009
Showing with 23 additions and 0 deletions.
  1. +23 −0 manifest_test.rb
23 manifest_test.rb
@@ -0,0 +1,23 @@
+require 'rubygems'
+require 'shadow_puppet'
+#require 'facter'
+
+class ManifestTest < ShadowPuppet::Manifest
+ recipe :sample
+
+ def sample
+ exec :foo, :command => 'echo "foo" > /tmp/foo.txt'
+
+ package :ruby, :ensure => :installed
+
+ file '/tmp/example.txt', {
+ :ensure => :present,
+ :content => Facter.to_hash.inspect
+ }
+ end
+
+end
+
+m = ManifestTest.new
+m.execute
+

0 comments on commit 2c0d629

Please sign in to comment.
Something went wrong with that request. Please try again.