The :: refer to scope, in this case it's saying "variables at the very top scope of what puppet knows about". This is because you can have:
$::operatingsystem $module::class::operatingsystem And it's not sure which one you mean. By adding the :: you're making sure it knows to check the fact and not something you might have set in a specific class. On Wed, Jun 20, 2012 at 4:22 PM, Jakov Sosic <[email protected]> wrote: > On 06/18/2012 03:25 PM, Jakov Sosic wrote: > > Hi. > > > > I have the following facts available: > > > > # facter | grep oper > > operatingsystem => CentOS > > operatingsystemrelease => 6.2 > > > > Now, if I wish to use conditionals on these facts, I have to do it like > > this: > > > > case $operatingsystem {} > > case $::operatingsystemrelease {} > > > > > > I'm puzzled as to why can't I just use $operatingsystemrelease, and what > > do these two semicolons mean? > > > Any ideas?! :) Anyone?!?! > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
