[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Class definitions inside conditionals or loops are not allowed
From: |
Adrian Phillips |
Subject: |
Re: Class definitions inside conditionals or loops are not allowed |
Date: |
17 Feb 2003 08:15:25 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
>>>>> "Matt" == Matt Armstrong <matt@lickey.com> writes:
Matt> I just upgraded to 2.0.5 from 2.0.1 and am now getting the
Matt> following errors. I'm not sure how to fix them.
Matt> cf::/var/cfengine/inputs/cfagent.conf:139: Class \
Matt> definitions inside conditionals or loops are not allowed
Matt> The relevant section of cfagent.conf is this, where I use
Matt> DefineClasses to conditionally have cfagent reload sshd.
Matt> editfiles:
# Close up a security hole in OpenSSH versions < 3.4. We never
# use S/KEY anyway.
BeginGroupIfNoLineMatching "^ChallengeResponseAuthentication no$"
DeleteLinesMatching "^ChallengeResponseAuthentication"
Append "ChallengeResponseAuthentication no"
DefineClasses "sshd_reload_config"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EndGroup
Move this after EndGroup
Sincrerely,
Adrian Phillips
--
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now? [OK]