Try using an erb template for your content.  Its working well for me.

   1. ## facts.erb
   2. <%=
   3.     yaml = ["---"]
       keys = scope.to_hash.keys.reject {|k| k.to_s =~ 
   /(uptime_seconds|timestamp|free)/} 
   4.     keys.sort.each {|k| yaml << "#{k}: #{scope.lookupvar(k).to_s}"}
       yaml.join("\n   ")
   5. %>
   6.  
   7. ## manifest
   8. file{"/etc/mcollective/facts.yaml":
   9.   content => template("mcollective/facts.yaml")
   10. }
   



   1. 
   

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to