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': ensure => running, enable => true, require => Package['httpd'] } }" pp.parse pp = pp = Puppet::Parser::Parser.new("development") pp.file = "web.pp" pp.parse My idea is to re-use the classes written in the pp file style and they are stored in database. I just want to load those classes depending on 'FQDN' name of a node and then create a node in ruby like this. node name_of_the_node{ create_resource :class, "httpd" } I hope now you get what i'm trying to do in the ruby manifest. If its still not clear then please ask me to explain more about what i want to achieve from this. Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.