[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cfrun: passing remote option "-D myclass" does not work
From: |
Hugo Gayosso |
Subject: |
Re: cfrun: passing remote option "-D myclass" does not work |
Date: |
04 Jun 2002 13:36:42 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
address@hidden writes:
> You might have misunderstood -- cfengine will run on every host
> unless the cfservd.conf file defines the groups that you want to
> restrict to
Ok, I thought that whatever groups I had defined in cf.group would be
used.
> cfrun machine1 machine2 -v
>
> Otherwise the class definition will work, but cfagent will
> run on every host anyway, to make sure that it knows
> which host defines what.
Ok, now it works, but there is a little problem:
I tried :
# cfrun myhost -f /var/cfengine/inputs/cfrun.hosts -v -- -- syncMyDir
[....]
Connecting to server myhost.mydomain.com to port 0 with options
[....]
Hello policyhost.mydomain.com (130.172.82.131), nothing relevant to do here...
[....]
It didn't do what I expected, which is to define the class "syncMyDir".
But if I run:
# cfrun myhost -f /var/cfengine/inputs/cfrun.hosts -v -- -DsyncMyDir --
Connecting to server myhost.mydomain.com to port 0 with options -DsyncMyDir
cfservd Executing /var/cfengine/bin/cfagent --no-splay --inform -DsyncMyDir
It works.
Thanks for your help!
- --
Hugo Gayosso
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8/Pqqx2JZtTN6co8RAksIAKCxpvmVL44hxL0iyCcrt3hKUQiY1wCfZd+j
Mm7MN5IWEKSuHJ3e9rB5AeU=
=IBf0
-----END PGP SIGNATURE-----