Hello, I tried placing a comma where you suggested. However that did not appear to make any difference. Do you have any other thoughts?
[root@VIRTCENT03:~] #puppetd --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at end of file; expected '}' at /etc/puppet/manifests/classes/baseapps.pp:31 warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run class baseapps { $packagelist = [ "nmap","php-common","php-cli","perl","keychain","screen" ] package { $packagelist: ensure => installed } class sshd { case $operatingsystem { centos: { $ssh_packages = [ "openssh","openssh-server","openssh-clients"] } default: { $ssh_packages = [ "openssh", "openssh-server" ] } } package { $ssh_packages: ensure => installed } service { sshd: name => $operatingsystem ? { centos => "sshd", default => "sshd", }, enable => true, ensure => running } } thanks!! On Wed, Feb 9, 2011 at 3:34 PM, Sergey Zhuga <sergey.zh...@gmail.com> wrote: > Hi, > >> service { sshd: >> name => $operatingsystem ? { >> centos => "sshd", >> default => "sshd", >> } > > comma > >> enable => true, >> ensure => running >> >> } > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.