[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Classes in shellcommands?
From: |
Josef Wolf |
Subject: |
Classes in shellcommands? |
Date: |
Wed, 1 Sep 2004 23:00:18 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello!
I have put the following sequence (stolen from anchor ;) into my config file:
shellcommands:
sshd_server.redhat.Hr00 | sshd_server.suse.Hr00::
"/sbin/chkconfig --list sshd | /usr/sbin/grep '3:off'"
useshell=true inform=false define=sshd_chkconfig
With this entry, cfagent complains:
cf:cfengine::/var/cfengine/inputs/ssh.cf:107: scripts or commands must have
absolute path names
cfengine: concerns: sshd_server.redhat.Hr00
cf:cfengine::/var/cfengine/inputs/ssh.cf:107: scripts or commands must have
absolute path names
cfengine: concerns: |
But the path names _are_ absolute. When I remove the or operator from the
class specification:
shellcommands:
sshd_server.suse.Hr00::
"/sbin/chkconfig --list sshd | /usr/sbin/grep '3:off'"
useshell=true inform=false define=sshd_chkconfig
It works fine. Looks like classes parsing is different in shellcommands
section?
Any ideas?
--
Please visit and sign and http://www.ffii.org
-- Josef Wolf -- jw@raven.inka.de --
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Classes in shellcommands?,
Josef Wolf <=