-03-12 at 00:41 -0700, barrowkwan wrote:
> > looks like the following could cause high cpu usage and take puppet
> > longer time to finish a catalog run
>
> > file { "/some/path":
> > owner => "user1",
> >
looks like the following could cause high cpu usage and take puppet
longer time to finish a catalog run
file { "/some/path":
owner => "user1",
group => "group1",
ensure => directory,
recurse => true
}
especially whe
to answer my own question, just put myclass.rb under /var/lib/puppet/
lib instead of /var/lib/puppet/lib/pupet/parser/functions
On Sep 16, 3:33 pm, barrowkwan <[EMAIL PROTECTED]> wrote:
> I have created a custom function, my_test.rb ( it is under /var/lib/
> puppet/lib/puppet/pars
I have created a custom function, my_test.rb ( it is under /var/lib/
puppet/lib/puppet/parser/functions in Fedora ). the function is like
this
module Puppet::Parser::Functions
newfunction(:my_test, :type => :rvalue) do |args|
"HelloWorld"
end
end
now I want to create a custom Class and