Can''t seem to get this to work. I read in the language tutorial that
this was something introduced in 0.24.6. Upgraded both server and
client to 0.24.6. I keep getting this error:
err: Syntax error at ''==''; expected ''}'' at
/etc/puppet/modules/ntp/
manifests/init.pp:3 on node
class ntp {
if $server == "appserver" {
file { "/etc/ntp.conf":
# source => "puppet:///ntp/ntp.conf",
mode => "755",
owner => "root",
group => "root",
ensure => present,
content => template("template/ntp.server.conf"),
notify => Service["ntp"]
}
} else {
file { "/etc/ntp.conf":
# source => "puppet:///ntp/ntp.conf",
mode => "755",
owner => "root",
group => "root",
ensure => present,
content => template("template/ntp.client.conf"),
notify => Service["ntp"]
}
}
service {"ntp":
provider => "init",
ensure => "running",
hasstatus => "true"
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
is class ntp { missing the } at the EOF?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Brice Figureau
2008-Dec-03 14:11 UTC
[Puppet Users] Re: conditional if/else string matching
On Tue, 2008-12-02 at 11:31 -0800, Hang Chan wrote:> Can''t seem to get this to work. I read in the language tutorial that > this was something introduced in 0.24.6. Upgraded both server and > client to 0.24.6. I keep getting this error: > > err: Syntax error at ''==''; expected ''}'' at /etc/puppet/modules/ntp/ > manifests/init.pp:3 on nodeAre you sure you actually upgraded _and_ restarted your puppetmaster? -- Brice Figureau Days of Wonder http://www.daysofwonder.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---