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 :)
On Thu, 13 May 2010 15:47:38 +0100, Matt <mattmoran76@gmail.com>
wrote:> Hi,
>
> I think your missing a '','' where
>
> source => "puppet:///apache/$source",
>
> Matt
>
> On 13 May 2010 05:44, Amandeep Kansal <kansalbpa@gmail.com> wrote:
>
>> 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-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>>
puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@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.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.