Displaying 1 result from an estimated 1 matches for "webhttpd".
2011 Mar 23
1
way of importing .pp file or some string that contain class definition in ruby dsl
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&q...