Re: [Puppet Users] Re: Syntax error at 'enable'; expected '}'

2011-02-09 Thread Tim Dunphy
Hi guys,

 got it worked out!!!

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 => $operatingsytem ? {
centos => "sshd",
default => "sshd",
 },
  enable => true,
  ensure => running
 }

  }
}


Thanks so much for your help!!
:-)

On Wed, Feb 9, 2011 at 4:43 PM, Atha Kouroussis  wrote:
> Hi Tim,
> you are missing a closing }
> 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
> }
> } <- missing
> }
> Cheers,
> Atha
>
> On Wednesday, February 9, 2011 at 6:38 PM, Tim Dunphy wrote:
>
> 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  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.
>
> --
> 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.



[Puppet Users] Re: Syntax error at 'enable'; expected '}'

2011-02-09 Thread Atha Kouroussis
Hi Tim,
you are missing a closing }

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
}
} <- missing
}

Cheers,
Atha


On Wednesday, February 9, 2011 at 6:38 PM, Tim Dunphy wrote:
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  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.
> 

-- 
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.



Re: [Puppet Users] Re: Syntax error at 'enable'; expected '}'

2011-02-09 Thread Tim Dunphy
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  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.



[Puppet Users] Re: Syntax error at 'enable'; expected '}'

2011-02-09 Thread Sergey Zhuga
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.