On Feb 8, 2011, at 10:37 AM, Tim Dunphy wrote:
> hello puppet, i am not sure why I am getting this error.. puppetd
> --test is complaining about unbalanced brackets but they looked
> balanced to me
>
> [root@VIRTCENT16:~] #puppetd --test
> err: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not parse for environment production: Syntax error at
> ''mysqld''; expected ''}'' at
> /etc/puppet/manifests/classes/dbservices.pp:20
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
Not quite it''s saying that you have a syntax error on a line that has
"mysqld" on it. It''s not saying that your brackets are
unbalenced. It''s just saying that you have a syntax error because
stuff isn''t in the right order.
In this case, because I can see the error in your code, I can see you made a
typo and forgot a piece of syntax on a line with "mysqld" on it.
> class postgres {
>
> package { postgresql: ensure => installed }
>
> service { postgresql:
> name => postgresql,
> enable => true,
> ensure => running
> }
>
> }
>
> class mysql {
>
> $mysql_packages =
["mysqlclient15","mysql-server","php-mysql"]
>
> package { $mysql_packages: ensure => installed }
>
> service { mysqld:
> name "mysqld",
> enable => true,
> ensure => running,
> }
> }
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
> --
> 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.
>
--
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.