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 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.
<Jeffrey_Goldschrafe@timeinc.com>
2011-Sep-22 14:11 UTC
RE: [Puppet Users] install.pp error
It looks like you''re missing an opening brace:
class ntp::install {
package { "ntp":
name => $operatingsystem ? { <-- HERE
-----Original Message-----
From: puppet-users@googlegroups.com
[mailto:puppet-users@googlegroups.com] 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 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.
Thank you very much Jeffrey - that''s fixed it! On 22 September 2011 15:11, <Jeffrey_Goldschrafe@timeinc.com> wrote:> It looks like you''re missing an opening brace: > > class ntp::install { > package { "ntp": > name => $operatingsystem ? { <-- HERE > > -----Original Message----- > From: puppet-users@googlegroups.com > [mailto:puppet-users@googlegroups.com] 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 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. > >-- 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.