Subject: | Cannot have 'define' in a comment block |
Error: Error: Unexpected start of object definition in file '/etc/puppet/modules/nagios/files/cmp-nag/shared/services_templates.cfg' on line 139.
define service{
name Linux-L ; The 'name' of this service template. Do not define multiple same templates
use generic-service-LON ; Inherit default values from the generic-service definition
contact_groups linux_admins ; Notifications get sent out to everyone in the 'linux_admins' group
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
If I remove 'define' from the comment block, all is good.