On 3/3/06, Atom Powers <[EMAIL PROTECTED]> wrote:
> I had a possibly similar problem where it wouldn't let me use
> "InsertFile" and the simple "Append" actions in the same block.
>
> But these work for me:
>
>         { # SNMP config
>         /usr/local/etc/snmp/snmpd.conf
>         AutoCreate
>         EmptyEntireFilePlease
>         InsertFile "${FileSource}/common/templates/snmpd.conf"
>         BeginGroupIfNoLineContaining "syscontact ${sysadm}"
>                 DeleteLinesContaining "syscontact"
>                 Append "syscontact ${sysadm}"
>         EndGroup
>         DefineClasses "newsnmpd"
>         }

Although on reflection, it should never enter this group, since my
template has that line in it already. So I can't really vouch for this
block.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to