help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cfagent.conf for clients in different subnets


From: Morgan Ives
Subject: Re: cfagent.conf for clients in different subnets
Date: Tue, 13 May 2003 09:00:19 -0500

Matt,
   We do this type of  thing by using NIS netgroups.  All members of each subnet are
    placed in  a netgroup.  The NIS netgroup is then referenced in the groups section
    of cfengine.conf.   For example,  assuming NIS netgroups net1 and net2.

groups:
    subnet1 = ( +@net1 )
    subnet2 = ( +@net2 )

copy:
    subnet1::
            ${repos}/auto_master.net1 dest=/etc/auto_master
             o=root g=bin m=644 type=sum define=restartautofs
    subnet2::
            ${repos}/auto_master.net2 dest=/etc/auto_master
             o=root g=bin m=644 type=sum define=restartautofs
 

    This is not exactly what you want but it works.    We were already
    maintaining NIS subnet groups for other reasons so this was easy for
     me to implement.
                                     Morgan
 

"Garrett, Matt M SITI-ITDIEEE" wrote:

Folks

I am using cfengine quite well.

Small problem in that half the clients are in one subnet and half in another
e.g 127.4.4.XXX    127.4.5.XXX

Currently my cfagent.conf file looks like
copy:
        solaris::

        /usr/local/cfengine/inputs/solaris/subnet1      dest=/
                                                        recurse=inf
                                                        server=WHAT_ever

        /usr/local/cfengine/inputs/solaris/subnet2      dest=/
                                                        recurse=inf
                                                        server=WHAT_ever
What would be nice is just to have one input e.g
/usr/local/cfengine/inputs/solaris

File's in there to have some end tag to say they were part of subnet1 or subnet2
or no end tag to make the file on both subnets.
e.g

/usr/local/cfengine/inputs/solaris/etc/auto_master_#subnet1# >- copy to client as /etc/auto_master
/usr/local/cfengine/inputs/solaris/etc/auto_master_#subnet2# >- copy to client as /etc/auto_master
/usr/local/cfengine/inputs/solaris/etc/nsswitch.conf             >- copy to client as /etc/nsswitch.conf

If the above makes any sense ?
Any idea's if it is possible , and if so how.

If it make any difference I am using cfengine version 2.0.5

Thanks

Matt
Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: Matt.M.Garrett@is.shell.com
Internet: http://www.shell.com

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

-- 
 Morgan Ives / Senior Unix Administrator 
 Engineering Support Services / NCSG Information Technology
 Motorola Semiconductor Products Sector
 512.996.6785 (voice) 512.996.7755 (fax) 888.894.5079 (pager)

------------------------------------------------------------------------ 
  Motorola Document Classification 
  [X]  General business information 
  [ ]  Motorola internal use only 
  [ ]  Motorola confidential proprietary 
  ------------------------------------------------------------------------
 
reply via email to

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