On Mar 15, 2007, at 1:29 PM, Adam Kosmin wrote:
> Any help would be much appreciated:
>
> $refcheck = defined(File["/home/$name/.ssh"])
> if $refcheck {}
> else {
> file { "/home/${name}/.ssh":
> ensure => directory,
> owner => $name,
> group => $name,
> mode => 700
> }
> }
>
>
> puppetd says: err: Syntax error at ''File'' at
> /etc/puppet.testing/manifests/lib/ssh-keygen.pp:22
It appears that the parser is set up incorrectly. Resource
references are valid arguments to statement functions (e.g., realize)
but not rvalue functions (e.g., defined).
Can you file this as a bug, please?
--
The point of living and of being an optimist, is to be foolish
enough to
believe the best is yet to come. -- Peter Ustinov
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com