[Puppet Users] Could not match '}'

168 views
Skip to first unread message

Amandeep Kansal

unread,
May 13, 2010, 12:44:10 AM5/13/10
to puppet...@googlegroups.com
Please help me:
what would be the cause of this error:  puppetmasterd 0.24.4


define apache::apache_files($owner = root, $group = root, $mode = 644, $source, $backup = false, $recurse = false, $ensure = file) {

    file { $name:
       mode    => $mode,
       owner   => $owner,
       group   => $group,
       backup  => $backup,
       recurse => $recurse,
       ensure  => $ensure,
       require => Package["httpd"],
       source  => "puppet:///apache/$source"
    }
}


This gives error:Could not retrieve catalog: Could not match '}' at /etc/puppet/modules/apache/manifests/apache_files.pp:1 on node example.com

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Matt

unread,
May 13, 2010, 10:47:38 AM5/13/10
to puppet...@googlegroups.com
Hi,

I think your missing a ',' where

source  => "puppet:///apache/$source",

Matt

James Cammarata

unread,
May 13, 2010, 10:57:22 AM5/13/10
to puppet...@googlegroups.com

I don't think it's the lack of a "," after that line, the error states it's
on line 1 of the .pp, so I'd focus on the define line. Possibly, it's the
fact that $source is listed in the middle of all the other variables
defined with default values - most languages don't like you mixing things
like that. I'd move it to the front of the list, with all the variables
with defaults coming after.

Also, you might want to check for random control characters at the end of
the line, like if you had edited this file on a Windows box and then
uploaded it to your puppet master server. I know that's a long shot, but
always worth checking :)
puppet-users...@googlegroups.com<puppet-users%2Bunsu...@googlegroups.com>
>> .
>> 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 puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Reply all
Reply to author
Forward
0 new messages