bug-cfengine
[Top][All Lists]
Advanced

[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 08:29:23 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Mark but it didn't work, I tried:

# cfrun -f /var/cfengine/inputs/cfrun.hosts -v --  -- MyServers syncMyDir

# cfrun -f /var/cfengine/inputs/cfrun.hosts -v --  -- MyServers.syncMyDir

Besides, the above lines seems confusing to me.  What I want is to run
'cfrun' only on hosts that belong to "MyServers", then in those hosts
(and only in them) I want to define "syncMyDir".

In other words, I want to tell "MyServers" to synchronize a directory
NOW.

P.S.
  I also tried with '-DsyncMyDir' without space, and didn't work
  either.


address@hidden writes:

> You don't need -D (incidentally -DsyncMyDir without space) since
> you can put classes after the second --
> 
> best,
> Mark
> 
> 
> On 30 May, Hugo Gayosso wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > 
> > cfengine-2.0.0
> > Red Hat 7.2
> > 
> > Executing:
> > 
> > # cfrun -v -- -D syncMyDir -- MyServers
> > 
> > Runs but does not define the class "syncMyDir" on "MyServers".
> > 
> > Excerpt of the run:
> > 
> > 
> > cfrun(0):         .......... [ Hailing myhost.mydomain.com ] ..........
> > Connecting to server myhost.mydomain.com to port 0 with options  -D 
> > syncMyDir 
> > Loaded /var/cfengine/ppkeys/root-111.222.31.210.pub
> > Connect to myhost.mydomain.com = 111.222.31.210 on port cfengine
> > Loaded /var/cfengine/ppkeys/root-111.222.31.210.pub
> > cfrun:cfhost.mydomain.com: Strong authentication of 
> > server=myhost.mydomain.com connection confirmed
> > myhost.mydomain.com replies..
> > 
> > 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > - - -
> > 
> > Hello cfhost.mydomain.com (111.222.32.131), nothing relevant to do here...
> > 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > - - -
> > 
> > Connection with myhost.mydomain.com completed
> > 
> > 
> > If I log to 'myhost.mydomain.com' and run: 'cfagent -D syncMyDir', it
> > works.
> > 
> > In my cfservd.conf file, I have defined:
> > 
> >    cfrunCommand             = ( "/var/cfengine/bin/cfagent" )
> > 
> > 
> > 
> > Greetings,
> > - -- 
> > Hugo Gayosso
> > Support the Free Software Movement!
> > GNU Project <http://www.gnu.org>
> > 
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> > 
> > iD8DBQE89jPrx2JZtTN6co8RAu6uAKDhdecyLonWkYfmOzCi9NcgrYZc2QCgxgX9
> > HoHRHAq6piTn0P88ZoVyerc=
> > =SPlR
> > -----END PGP SIGNATURE-----
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  address@hidden
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

- -- 
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8/LKjx2JZtTN6co8RApMtAKDbSvHI2fPxtQQt+buleYvXlQDJVACfUT82
S0jPmJlMGJUnyWJxTA9eVBY=
=17Kl
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]