Thank you very much Jeffrey - that's fixed it! On 22 September 2011 15:11, <[email protected]> wrote: > It looks like you're missing an opening brace: > > class ntp::install { > package { "ntp": > name => $operatingsystem ? { <-- HERE > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Dan Atwork > Sent: Thursday, September 22, 2011 6:24 AM > To: Puppet Users > Subject: [Puppet Users] install.pp error > > Hi, > > I'm new to puppet and working my way through the book. Whilst setting > up a 'ntp' module, I'm getting the following error when a client > connects to the master: > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Syntax error at '/'; expected '}' at /etc/puppet/modules/ntp/ > manifests/install.pp > > I've created the following files in '/etc/puppet/modules/ntp/ > manifests': > > init.pp > params.pp > config.pp > service.pp > install.pp > > Contents of 'install.pp' are: > > class ntp::install { > package { "ntp": > name => $operatingsystem ? > /(Red Hat|CentOS|Fedora|Ubuntu|Debian)/ => "ntp", > Solaris => "ntp", > }, > ensure => installed, > } > > Can anyone please tell me what's wrong with that? > > Regards, > > Dan > > -- > You received this message because you are subscribed to the Google > Groups "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
