On Feb 2, 2:14 pm, nicholas <nvee...@gmail.com> wrote:

>     def self.ca?
>         return false unless Puppet[:ca]
>         return false unless Puppet[:name] == "puppetmasterd"
>         return true
>     end

[...]

> Basically I read this as, if this class is used inside of
> puppetmasterd, then turn on the certificate authority.

I believe you're missing something there: if the host Puppet's "ca"
property is false then that function returns false, regardless of the
value of the "name" property (first line of the function body). In
other words, we see exactly what one should expect to see in support
of the config file variable and command-line option.

Of course, much depends on how the (Ruby) class containing that
function is used, and on how and when the "ca" Puppet property is set,
but I don't see anything obviously wrong with the particular code
presented.

John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to