[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with class and copy
From: |
Eric Doutreleau |
Subject: |
Re: problem with class and copy |
Date: |
Thu, 6 Jun 2002 11:23:50 +0200 (CEST) |
On Thu, 6 Jun 2002, Eric Doutreleau wrote:
Well i just found the answer in cfengine manual.
The variable defined in the cf.groups file are not used in the main
cfagent.conf file.
Sorry to have distrubed the list
>
>
> I m trying to setup a global configuration for cfengine 2.0.2 and i'm
> a bit puzzled by classe definition.
>
> Here is my configuration (cfagent.conf )
>
> import:
> cf.groups
>
> control:
>
> actionsequence = ( files shellcommands copy )
>
> domain = ( int-evry.fr )
>
> timezone = ( MET )
>
> smtpserver = ( email.int-evry.fr ) # used by cfexecd
> sysadm = ( mci-unix@int-evry.fr ) # where to mail output
>
> ######################################################################
>
> copy:
>
> salletp::
>
> /var/cfengine/data/autorpm/salletp.conf
> dest=/etc/autorpm.d/addons/salletp.conf mode=0600 server=crotale
> /var/cfengine/data/autorpm/salletp dest=/etc/autorpm.d/pools/salletp
> mode=0600 server=crotale
>
> platemultux::
>
> /var/cfengine/data/autorpm/platemultux.conf
> dest=/etc/autorpm.d/addons/platemultux.conf mode=0600 server=crotale
> /var/cfengine/data/autorpm/platemultux
> dest=/etc/autorpm.d/pools/platemultux mode=0600 server=crotale
>
> any::
> /var/cfengine/data/autorpm/redhat-updates.conf
> dest=/etc/autorpm.d/redhat-updates.conf mode=0600 server=crotale
> /var/cfengine/data/autorpm/redhat-updates
> dest=/etc/autorpm.d/pools/redhat-updates mode=0600 server=crotale
> /var/cfengine/data/autorpm/autorpm.conf
> dest=/etc/autorpm.d/autorpm.conf mode=0600 server=crotale
>
> ######################################################################
>
> files:
>
> /etc/passwd
>
> mode=644 # make sure the file permissions are right
> owner=root # make sure it's owned by root
> action=fixall # if anything is wrong, fix it immediately!
> checksum=md5 # keep a "tripwire" checksum to tell us
> # if any changes occur here
>
> /etc/shadow mode=600 owner=root action=fixall
>
> ######################################################################
>
> Here is my cf.groups
>
> groups:
>
> sallestp = ( stp15202 stp15137 )
>
> platemultux = ( platmultux )
>
>
> Then i guess the machine named platmultux is on the platemultux class.
>
> But when i launch cfagent in the platmultux machine i don't have the
> copy section concerning platemultux class executed.
> I have only the any:: part executed.
>
> How can i test at runtime that platmultux is on the platemultux class?
> How can i have both part executed at run time?
>
> THanks i nadvance for any help
>
>
--
Eric Doutreleau
I.N.T | Tel : +33 (0) 160764687
9 rue Charles Fourier | Fax : +33 (0) 160764321
91011 Evry France | email : Eric.Doutreleau@int-evry.fr