This works. thx! Another rookie question, what is the :: in front of the variable name signify in general?
--KL On Tue, Dec 13, 2011 at 3:37 PM, Stefan Heijmans <[email protected]> wrote: > How about something like; > > > $hasfile = true > if $::hasfile { > $fileensure = 'present' > } > else { > $fileensure = 'absent' > } > > file { "somefile" : > > ensure => $::fileensure, > source => "puppet:///somefile", > owner => "root", > . > . > . > } > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/CWF3DekKQwAJ. > > 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.
