Hi
> Thanks, I've seen that work but the trouble is I want to be able to
> pass in a $docroot option,
> or default to something if one is not there; I suppose I can probably
> get around it by checking
> if $docroot is defined and if not setting it or something?
how about:
define bar($docroot = undef) {
if $docroot == $undef { $real_docroot = "/tmp/$name" }
else { $real_docroot = $docroot }
file { $real_docroot: ensure => present }
}
cheers pete
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---