[Puppet Users] way of importing .pp file or some string that contain class definition in ruby dsl

2011-03-23 Thread junaid_malik
I'm finding the way to import a file or a class stored in string in ruby manifest. I have tried following code to parse the class having packages and services. pp = Puppet::Parser::Parser.new(development) pp.string = class webhttpd{package { 'httpd': ensure = installed, } service { 'httpd':

Re: [Puppet Users] way of importing .pp file or some string that contain class definition in ruby dsl

2011-03-23 Thread Dan Bode
Have a look at external node classifiers, I believe this is a more appropriate approach for what you are trying to accomplish: http://docs.puppetlabs.com/guides/external_nodes.html On Wed, Mar 23, 2011 at 7:47 AM, junaid_malik junaidmali...@gmail.comwrote: I'm finding the way to import a file